backbone for login
This commit is contained in:
5
frontend/src/rest/Users.js
Normal file
5
frontend/src/rest/Users.js
Normal 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})
|
||||
}
|
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user