Version 3.0 sortie, fusion avec JujulBot
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
import axios from 'axios'
|
||||
|
||||
export interface LoginDetails {
|
||||
username: string
|
||||
password: string
|
||||
remember?: boolean
|
||||
otp?: string
|
||||
}
|
||||
|
||||
export const ADSModule = {
|
||||
async GetInstances(host: string, SESSIONID: string) {
|
||||
return await axios.post(host + '/API/ADSModule/GetInstances', {
|
||||
@@ -56,7 +63,7 @@ export const ADSModule = {
|
||||
}
|
||||
|
||||
export const Core = {
|
||||
async Login(host: string, details: any) {
|
||||
async Login(host: string, details: LoginDetails) {
|
||||
return await axios.post(host + '/API/Core/Login',
|
||||
details
|
||||
).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user