1
0
forked from PGL/Clyde

Login and register ok and starting requests

This commit is contained in:
2024-03-18 11:55:51 +01:00
parent 8ff29ca34e
commit 753af3874e
13 changed files with 42 additions and 33 deletions

View File

@ -3,7 +3,7 @@
*
* TODO: On time of writing, the backend doesn't support these endpoints so it could be modified in the future.
*/
import {restGet, restPatch} from './restConsumer.js'
import {restGet, restPatch,restPatchInfo} from './restConsumer.js'
/**
* create a new register requests that can be recovered by the registering service
@ -41,5 +41,5 @@ export async function getAllRegisters(){
* Change the state of a requests.
*/
export async function validateRegister(id, state){
return restPatch("/request/register/" + id, {state: state});
return restPatch("/request/register/" + id, state);
}