Skip to content

Skills-Union-NTU-SDI-Program/project4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm install express sequelize pg pg-hstore body-parser cors jsonwebtoken bcryptjs --save

Authorization:

GET /api/test/all

GET /api/test/user for loggedin users (user/moderator/admin)

GET /api/test/mod for moderator

GET /api/test/admin for admin

POST : /api/auth/signin

https://localhost:8080/ https://gentle-fortress-35413.herokuapp.com/api/auth/signup Register some users with /signup API:

admin with admin role mod with moderator and user roles individual with user role

Example of POST (yet to create database) { "username": "Alex", "email": "[email protected]", "password": "iamhandsome", "roles": ["user", "moderator"] }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Procfile 0.1%