Skip to content
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

feat: Added ability to add custom middleware to functions. #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Daelop
Copy link

@Daelop Daelop commented May 22, 2024

  • server.ts will now check for a _middleware/ directory.
  • Files in the directory will be added to the server as middleware using app.use.
  • Middleware routes can be defined by exporting an array named 'routes' containing path strings.

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.

1 participant