mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Rewrite HTTP handler for routes HTTP POST/PUT/PATCH methods
- adding tests for HTTP PUT - more tests for HTTP PATCH
This commit is contained in:
@@ -365,10 +365,10 @@ func (s *Server) bindHandlers(ctx context.Context) {
|
||||
apps := v1.Group("/apps/:app")
|
||||
{
|
||||
apps.GET("/routes", s.handleRouteList)
|
||||
apps.POST("/routes", s.handleRouteCreateOrUpdate)
|
||||
apps.POST("/routes", s.handleRoutesPostPutPatch)
|
||||
apps.GET("/routes/*route", s.handleRouteGet)
|
||||
apps.PATCH("/routes/*route", s.handleRouteCreateOrUpdate)
|
||||
apps.PUT("/routes/*route", s.handleRouteCreateOrUpdate)
|
||||
apps.PATCH("/routes/*route", s.handleRoutesPostPutPatch)
|
||||
apps.PUT("/routes/*route", s.handleRoutesPostPutPatch)
|
||||
apps.DELETE("/routes/*route", s.handleRouteDelete)
|
||||
|
||||
apps.GET("/calls", s.handleCallList)
|
||||
|
||||
Reference in New Issue
Block a user