Feature/be 01 endpoints for user and application#19
Conversation
…tion # Conflicts: # functions/package-lock.json # functions/package.json
Auth & Ticket
…tion # Conflicts: # functions/src/controllers/auth_controller.ts # functions/src/routes/index.ts
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Overview
Complete docs can be found in the postman docs shared in the group.
Future todo @heryandjaruma :
PR Type
Enhancement
Description
Migrate auth to session cookies with CSRF
Add application endpoints (patch, questions, status)
Implement file upload handling & validation
Enhance server (CORS, cookies, logging)
Changes walkthrough 📝
2 files
Enable storageBucket & fake data populatorConfigure CORS options for API14 files
Add application controllers & validationMigrate auth to session cookie & CSRFImplement session cookie auth middlewareAdd CSRF protection middlewareAdd role-based access middlewareDefine RoleType enumCreate application routesUpdate auth routes for session APIRegister application routesEnhance server: cookies, CSRF, loggingDefine application types & enumsAdd TypedRequestBody interfaceExtend fake data populator for questionsAdd session JWT utilities2 files
Remove auth middleware from ticket routesAdjust user routes middleware1 files
Document application endpoints1 files
Update dependencies & build scripts