1
0
forked from PGL/Clyde

backbone for login

This commit is contained in:
2024-03-05 13:18:57 +01:00
parent 09d5e1c293
commit 837db9aba9
3 changed files with 19 additions and 5 deletions

View File

@ -0,0 +1,5 @@
import { restGet, restPost } from './restConsumer.js'
export async function login(user, pass, exp){
restPost("/login", {login: user, password: pass, expiration: exp})
}

View File

@ -1,4 +1,4 @@
import { getCookie } from './utils.js'
import { getCookie } from '../utils.js'
const restURL = import.meta.env.PROD ? "https://clyde.herisson.ovh/api" : "http://localhost:8080"