pushup icon indicating copy to clipboard operation
pushup copied to clipboard

Configurable middleware

Open ernierasta opened this issue 3 years ago • 1 comments

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.

ernierasta avatar Jan 21 '23 09:01 ernierasta

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.

paulsmith avatar Jan 22 '23 20:01 paulsmith