Skip to content

Comments

JOB-45 Centralise authMiddleware#14

Merged
markom9822 merged 1 commit intomainfrom
JOB-45-centralise-auth-middleware
Dec 13, 2025
Merged

JOB-45 Centralise authMiddleware#14
markom9822 merged 1 commit intomainfrom
JOB-45-centralise-auth-middleware

Conversation

@AnsonChung3
Copy link
Contributor

Summary/Description/Done changes

As title.
4 our of 5 path groups needs to call for the same middleware so now it is centralised in index.ts

!Important Position matters in this sense. Any path below the line which calls the middleware will be covered by it. The /auth path needs to be above it.

Please try to run it locally before you approve.
Please delete branch when you merge.
Thank you. 😄 🍻

Time spent on this issue

10mins. It's straight foward

@markom9822 markom9822 merged commit a48ec12 into main Dec 13, 2025
1 check passed
@AnsonChung3 AnsonChung3 deleted the JOB-45-centralise-auth-middleware branch December 13, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants