11 lines
369 B
JavaScript
11 lines
369 B
JavaScript
import { restGet, restPost } from './restConsumer.js'
|
|
|
|
export async function login(user, pass, exp){
|
|
return restPost("/login", {login: user, password: pass, expiration: exp});
|
|
}
|
|
|
|
export async function register(user, pass, mail){
|
|
return restPost("/user", {name: user, password: pass, mail: mail});
|
|
restPost("/login", {login: user, password: pass, expiration: exp})
|
|
}
|