From 9f729eede8b922033fca32d6909dab48f11edfcb Mon Sep 17 00:00:00 2001 From: Mohamed Ali Yacoubi <62853673+yacoubii@users.noreply.github.com> Date: Sat, 10 Oct 2020 18:16:54 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2509a79..67cd445 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ Command used (windows): set authService_jwtPrivateKey=example ## Description This authentification service api has three endpoints: -1- /register that can register a user with email, username and password. It returns "User already registered." message if the user is already registered, otherwise it returns the whole user object ('_id','username','email'). +1- /auth/register that can register a user with email, username and password. It returns "User already registered." message if the user is already registered, otherwise it returns the whole user object ('_id','username','email'). -2- /login that returns a token if the login if successful. An error message otherwise. +2- /auth/login that returns a token if the login if successful. An error message otherwise. -3- /isAuthenticated that tests if the user is authenticated or not. You should provide the token in the headers with the attribute 'x-auth-token' as shown in the screenshot below. +3- /auth/isAuthenticated that tests if the user is authenticated or not. You should provide the token in the headers with the attribute 'x-auth-token' as shown in the screenshot below. Screenshot: https://imgur.com/a/5HXKhOw