View Code? Open in Web Editor
NEW
Task for Haspr Internship
JavaScript 98.91%
Shell 1.09%
haspr-task's Introduction
Following are the API Routes
/api/auth
- GET - Admin - All User Credentials, password hashed
/api/auth/login
- POST - { username, password }
- JWT Token
/api/auth/register
- POST - { username, password }
- Registeration
/api/info
- GET - Authenticated Users - All User Info
/api/info
- POST - { data: [{ key, value }] }
- Create key/value info
/api/info
- PUT - { key, value }
- Modify key/value info
/api/info/:key
- DELETE - Delete the key info
/api/admin
- GET - Admin - All User info
/api/admin/:id/:key
- DELETE - Delete the user's particular key data
haspr-task's People
Contributors
Watchers