mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
adding wrapper on apps and routes create response
This commit is contained in:
@@ -15,6 +15,26 @@ import (
|
||||
titancommon "github.com/iron-io/titan/common"
|
||||
)
|
||||
|
||||
type appResponse struct {
|
||||
Message string
|
||||
App models.AppWrapper
|
||||
}
|
||||
|
||||
type appsResponse struct {
|
||||
Message string
|
||||
Apps models.AppsWrapper
|
||||
}
|
||||
|
||||
type routeResponse struct {
|
||||
Message string
|
||||
Route models.RouteWrapper
|
||||
}
|
||||
|
||||
type routesResponse struct {
|
||||
Message string
|
||||
Routes models.RoutesWrapper
|
||||
}
|
||||
|
||||
func testRouter() *gin.Engine {
|
||||
r := gin.Default()
|
||||
ctx := context.Background()
|
||||
|
||||
Reference in New Issue
Block a user