Uh oh!
There was an error while loading. Please reload this page.
proxy server canvas set up + some apis - #7
Merged
Merged
Conversation
* add branch names constants * add nodemailer * update verify email templ, update api docs path * add smtp env vars * add email import alias * add user registration hanlder * complete user verification handler * add todo comments
Savy011
requested changes
Feb 2, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
* refactor constants and api schemas * delete health handler * move macros to api utils * move and update error type guard * create helper functions to reduce handler boiler plate * refactor handlers to use new helper functions * add jsdocs to helpers functions. they really need them.... * fix imports and minor docs
Savy011
self-requested a review
February 5, 2026 15:51
vidhipec27 added a commit
that referenced
this pull request
Feb 21, 2026
* proxy server canvas set up + some apis (#7) * branch commit lesgo * fix env module and import alias * migrate /v1/user/login route/ * better api docs * migrate api health routes * update schema defn for user login handler * update documentation tags * install email deps * add favicons and related assets * create verify email template * change email dev server port * rename `user` handler to `auth` * add user registration and verification handlers (#4) * add branch names constants * add nodemailer * update verify email templ, update api docs path * add smtp env vars * add email import alias * add user registration hanlder * complete user verification handler * add todo comments * Updated Docs for user registration and verification handlers * Change tags from 'Registration' to 'Authentication' * add `requireAuth` macro (#6) * implemented assign role api * `getEvent` and `createEvent` implemented * renamed `assign.ts` to `user.ts` + fixed urls * slight fix * more small fixes! * no more boilerplate (#8) * refactor constants and api schemas * delete health handler * move macros to api utils * move and update error type guard * create helper functions to reduce handler boiler plate * refactor handlers to use new helper functions * add jsdocs to helpers functions. they really need them.... * fix imports and minor docs * fix styling for email --------- Co-authored-by: Savy <savy.novachez011@proton.me> Co-authored-by: KD <keshavdham2005@gmail.com> * setup tailwind, remove sass * add markup for `sign-in` route * update biome config * update check:write script, add deps * update env lib * rename schemas, format imports * add projects scripts * update require-auth macro to include role based filtering * update sign-in api route, add sign-out and me api handlers * setup logger * move types around * add session related functions * setup signin route, and auth checks * dont need session secret * resolve un-resolved merge conflicts --------- Co-authored-by: Vidhi <151131126+vidhipec27@users.noreply.github.com> Co-authored-by: KD <keshavdham2005@gmail.com>
GURMEHAR-PEC pushed a commit
that referenced
this pull request
Apr 18, 2026
* branch commit lesgo * fix env module and import alias * migrate /v1/user/login route/ * better api docs * migrate api health routes * update schema defn for user login handler * update documentation tags * install email deps * add favicons and related assets * create verify email template * change email dev server port * rename `user` handler to `auth` * add user registration and verification handlers (#4) * add branch names constants * add nodemailer * update verify email templ, update api docs path * add smtp env vars * add email import alias * add user registration hanlder * complete user verification handler * add todo comments * Updated Docs for user registration and verification handlers * Change tags from 'Registration' to 'Authentication' * add `requireAuth` macro (#6) * implemented assign role api * `getEvent` and `createEvent` implemented * renamed `assign.ts` to `user.ts` + fixed urls * slight fix * more small fixes! * no more boilerplate (#8) * refactor constants and api schemas * delete health handler * move macros to api utils * move and update error type guard * create helper functions to reduce handler boiler plate * refactor handlers to use new helper functions * add jsdocs to helpers functions. they really need them.... * fix imports and minor docs * fix styling for email * `event` route implementation completed, testing to be done * auth stuff :P (#10) * proxy server canvas set up + some apis (#7) * branch commit lesgo * fix env module and import alias * migrate /v1/user/login route/ * better api docs * migrate api health routes * update schema defn for user login handler * update documentation tags * install email deps * add favicons and related assets * create verify email template * change email dev server port * rename `user` handler to `auth` * add user registration and verification handlers (#4) * add branch names constants * add nodemailer * update verify email templ, update api docs path * add smtp env vars * add email import alias * add user registration hanlder * complete user verification handler * add todo comments * Updated Docs for user registration and verification handlers * Change tags from 'Registration' to 'Authentication' * add `requireAuth` macro (#6) * implemented assign role api * `getEvent` and `createEvent` implemented * renamed `assign.ts` to `user.ts` + fixed urls * slight fix * more small fixes! * no more boilerplate (#8) * refactor constants and api schemas * delete health handler * move macros to api utils * move and update error type guard * create helper functions to reduce handler boiler plate * refactor handlers to use new helper functions * add jsdocs to helpers functions. they really need them.... * fix imports and minor docs * fix styling for email --------- Co-authored-by: Savy <savy.novachez011@proton.me> Co-authored-by: KD <keshavdham2005@gmail.com> * setup tailwind, remove sass * add markup for `sign-in` route * update biome config * update check:write script, add deps * update env lib * rename schemas, format imports * add projects scripts * update require-auth macro to include role based filtering * update sign-in api route, add sign-out and me api handlers * setup logger * move types around * add session related functions * setup signin route, and auth checks * dont need session secret * resolve un-resolved merge conflicts --------- Co-authored-by: Vidhi <151131126+vidhipec27@users.noreply.github.com> Co-authored-by: KD <keshavdham2005@gmail.com> * fix biome schema mismatch * refactor base cookie object into constants * implementing a common search api in --------- Co-authored-by: Savy <savy.novachez011@proton.me> Co-authored-by: KD <keshavdham2005@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what does this do?
This PR adds the ability to assign a role/change a role of an existing user in the database.
On the other hand, it also adds handlers to get event details of a particular event using its eventId, and to create an event
type
how to test this
There are 3 APIs that can be tested
Assign Role: Make a
POSTrequest with appropriate data{email, newRole}in the body, along with ajwtTokenfrom a member who isCOREor above, atapi/user/roleGet Event Details: Make a
GETrequest with the parameter ofidatapi/events/{id}(where id corresponds to the id number of a particular event)Create a New Event: Make a
POSTrequest with appropriate data, along with ajwtTokenfrom a member who isIBor above, atapi/events/. The following is an example of data you can submit to test:standard compliance
oath taking