diff options
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 6 |
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), |