Skip to content

Comments

feat/CORS#3

Merged
viktorkuts merged 5 commits intomasterfrom
feat/CORS
Jul 15, 2025
Merged

feat/CORS#3
viktorkuts merged 5 commits intomasterfrom
feat/CORS

Conversation

@isaacwallace123
Copy link
Owner

@isaacwallace123 isaacwallace123 commented Jul 7, 2025

In this branch, I've added CORS to work, I also completely over-hauled the way that middleware is interpreted by the router. Router has also changed and will now have pre-middlewares run prior to certain checks and actions.

Added HttpMethod enum to allow for easier visibility of Http Methods without importing GO's build in Http package.

Added a new middleware builder that allows users to create their own middlewares and for our system to actually recognize and utilize their middlewares

…are builder for developers to use, added CORS middleware, updated logging middleware to utilize the builder, added a middleware type, updated router to run the middlewares before handling OPTIONS and such, updated controller type to use new middleware type
Copy link
Collaborator

@viktorkuts viktorkuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, great overhaul of the middleware logic and CORS looks to be properly implemented.

@viktorkuts viktorkuts merged commit 37f615a into master Jul 15, 2025
1 check passed
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