From 7718424b0c9fb4adee5baf75e94ce00d384bd206 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Wed, 24 Jul 2024 15:17:15 -0400 Subject: [PATCH] returns json --- src/routes/auth.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/routes/auth.nim b/src/routes/auth.nim index 744d406..56bf970 100644 --- a/src/routes/auth.nim +++ b/src/routes/auth.nim @@ -12,8 +12,7 @@ proc createAuthenticationRoutes*() = username - string - required email - string - required password - string - required - returns: - token - new login token + returns: JSON ]# post "/api/v1/newUser": # TODO: sanitization + check if username and email are unique @@ -42,8 +41,7 @@ proc createAuthenticationRoutes*() = OR username - string - required via header password - string - required via header - returns: - token - token will be replaced by a new one + returns: JSON ]# get "/api/v1/newSession": var user = newUser()