POST
/login
Allow cors some
Login action
Return json web token
Parameter:
- Body: E-mail, password (SHA-1 encryption)
POST
/register
Allow cors some
Register action
Parameter:
- Body: E-mail, password (SHA-1 encryption)
POST
/auth
Allow cors all
Return authorization code
Parameter:
-
Header:
- Token:
json web token
- Token:
GET
/api/auth
Allow cors all
Return temporary token
Query:
- code:
authorization code
GET
/api/user
Allow cors
Return user information
Parameter:
-
Header:
- Token:
temporary token
- Token: