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

Configurable middleware #98

Open
ernierasta opened this issue Jan 21, 2023 · 1 comment
Open

Configurable middleware #98

ernierasta opened this issue Jan 21, 2023 · 1 comment

Comments

@ernierasta
Copy link

Hi Paul!
First - great work! It is very intriguing way to write web apps!

Do you think it would be possible to have configurable (on project level) middleware? I have scs.LoadAndSave in mind, but this is general topic.

@paulsmith
Copy link
Contributor

Yes, I desire this, too. It needs a design discussion. Probably the easiest thing to do would be a well-known file in the project directory named like config.go or something where you are given the configured Pushup app as an argument to a function. If Pushup detects that file it will call that function at some point during initialization of the compiled app.

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

No branches or pull requests

2 participants