-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] Invitation api #157
base: master
Are you sure you want to change the base?
Conversation
|
||
await this.invitationService.accept(id) | ||
|
||
// TODO: redirect to sign-up |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
method: 'POST', | ||
headers: { | ||
'Content-Type': 'application/json' | ||
// TODO: add auth |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
medium: payload.medium, | ||
address: payload.recepient, | ||
sender: payload.sender | ||
// TODO: add room_id |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
const authenticate = authMiddleware(authenticator, logger) | ||
const controller = new InvitationApiController(db, logger, config) | ||
|
||
router.post(PATH, authenticate) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
|
||
router.post( | ||
`${PATH}/generate`, | ||
authenticate, |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
controller.generateInvitationLink | ||
) | ||
|
||
router.get(`${PATH}/list`, authenticate, controller.listInvitations) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
|
||
router.get(`${PATH}/list`, authenticate, controller.listInvitations) | ||
|
||
router.get(`${PATH}/:id`, authenticate, controller.acceptInvitation) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
No description provided.