adding wrapper on apps and routes create response

This commit is contained in:
Pedro Nasser
2016-08-15 23:22:35 -03:00
parent 43ab8da867
commit b57e6656d2
4 changed files with 28 additions and 8 deletions

View File

@@ -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()