diff --git a/frontend/src/rest/Users.js b/frontend/src/rest/Users.js
new file mode 100644
index 0000000..2f414df
--- /dev/null
+++ b/frontend/src/rest/Users.js
@@ -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})
+}
diff --git a/frontend/src/rest/restConsumer.js b/frontend/src/rest/restConsumer.js
index b57839d..4632b5f 100644
--- a/frontend/src/rest/restConsumer.js
+++ b/frontend/src/rest/restConsumer.js
@@ -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"