adhocteam / pushup

Pushup is for making modern, page-oriented web apps in Go
https://pushup.adhoc.dev
MIT License
844 stars 30 forks source link

Configurable middleware #98

Open ernierasta opened 1 year ago

ernierasta commented 1 year ago

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 commented 1 year ago

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.