summaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-27 10:10:20 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-27 10:10:20 +0100
commit9e1d1537fdac58be2cad81d24e52f93fb9f2ee05 (patch)
treeff58e217170d9be13575ac466a677bf8d569d228 /src/auth.rs
parenta22d756eee31c8ba52a0d4dd119693d696d5eb1a (diff)
garbage code for deployment
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 0635910..09cc5e2 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -31,7 +31,7 @@ struct EncodeResponse {
#[utoipa::path(
request_body = UserForm,
- context_path = "/auth",
+ context_path = "/balalaika/auth",
description = "Creates a new user with the specified values.",
responses(
(status = 200, description = "Create new user", body = Response),
@@ -56,7 +56,7 @@ pub async fn register(
#[utoipa::path(
request_body = UserForm,
- context_path = "/auth",
+ context_path = "/balalaika/auth",
description = "Attempts to log in user. If successful, it returns an encoded token that grants access to protected routes in the api.",
responses(
(status = 200, description = "Returns encoded token", body = EncodeResponse),
@@ -122,7 +122,7 @@ async fn encode_token(id: usize, secret: &String) -> Result<String, HttpResponse
#[utoipa::path(
request_body = UserForm,
- context_path = "/auth",
+ context_path = "/balalaika/auth",
description = "Attempts to delete user. Both username and password are required.",
responses(
(status = 200, description = "Delete user", body = Response),