Version 3.0 sortie, fusion avec JujulBot

This commit is contained in:
Angels-dev
2024-08-07 01:09:05 +02:00
parent 696b284b6c
commit 586f68b0df
51 changed files with 2472 additions and 1144 deletions

View File

@@ -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 => {