mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
initial router tests: apps
This commit is contained in:
@@ -16,7 +16,7 @@ func Start(engine *gin.Engine) {
|
||||
|
||||
v1.GET("/apps/:app", handleAppGet)
|
||||
v1.PUT("/apps/:app", handleAppUpdate)
|
||||
v1.DELETE("/apps/:app", handleAppDestroy)
|
||||
v1.DELETE("/apps/:app", handleAppDelete)
|
||||
|
||||
apps := v1.Group("/apps/:app")
|
||||
{
|
||||
@@ -24,7 +24,7 @@ func Start(engine *gin.Engine) {
|
||||
apps.POST("/routes", handleRouteCreate)
|
||||
apps.GET("/routes/:route", handleRouteGet)
|
||||
apps.POST("/routes/:route", handleRouteUpdate)
|
||||
apps.DELETE("/routes/:route", handleRouteDestroy)
|
||||
apps.DELETE("/routes/:route", handleRouteDelete)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user