mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Middleware upgrade (#554)
* Adds root level middleware * Added todo * Better way for extensions to be added. * Bad conflict merge?
This commit is contained in:
@@ -33,7 +33,7 @@ func main() {
|
||||
type CustomMiddleware struct {
|
||||
}
|
||||
|
||||
func (h *CustomMiddleware) Chain(next http.Handler) http.Handler {
|
||||
func (h *CustomMiddleware) Handle(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Println("CustomMiddleware called")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user