codeprentice-org / codeprentice-site-revamped

The new Codeprentice website (currently in development).
0 stars 2 forks source link

Dleamy/mongoose and models setup #8

Closed DevinLeamy closed 3 years ago

DevinLeamy commented 3 years ago

Added content to the models in backend/models folder, added routes to test created routes and various other things.

Created: backend/enums/role.ts - (Enum of user roles) backend/types/project.ts - (Exports project interface and project type) backend/middleware/check-role.ts - (Middleware that verifies user is admin)

Changed: background/models/user.ts and project.ts - (Created user and project mongoose schemas and models) backend/routes/user.ts and project.ts - (Created routes for testing model functionality)

Renamed: No files were renamed