mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Per route api extensions (#542)
* Extend extension mechanism to support per-route API extensions * Tidy up comment * Remove print statement * Minor improvement to README * Avoid calling c.Request.Context() twice
This commit is contained in:
@@ -363,7 +363,7 @@ func (s *Server) bindHandlers(ctx context.Context) {
|
||||
|
||||
apps.GET("/routes", s.handleRouteList)
|
||||
apps.POST("/routes", s.handleRoutesPostPutPatch)
|
||||
apps.GET("/routes/*route", s.handleRouteGet)
|
||||
apps.GET("/routes/:route", s.handleRouteGet)
|
||||
apps.PATCH("/routes/*route", s.handleRoutesPostPutPatch)
|
||||
apps.PUT("/routes/*route", s.handleRoutesPostPutPatch)
|
||||
apps.DELETE("/routes/*route", s.handleRouteDelete)
|
||||
|
||||
Reference in New Issue
Block a user