...
|
...
|
@@ -7,6 +7,7 @@ import ( |
|
|
chart "gitlab.fjmaimaimai.com/allied-creation/sumifcc-bchart/cmd/chart-server/api/internal/handler/chart"
|
|
|
log "gitlab.fjmaimaimai.com/allied-creation/sumifcc-bchart/cmd/chart-server/api/internal/handler/log"
|
|
|
page "gitlab.fjmaimaimai.com/allied-creation/sumifcc-bchart/cmd/chart-server/api/internal/handler/page"
|
|
|
public "gitlab.fjmaimaimai.com/allied-creation/sumifcc-bchart/cmd/chart-server/api/internal/handler/public"
|
|
|
table "gitlab.fjmaimaimai.com/allied-creation/sumifcc-bchart/cmd/chart-server/api/internal/handler/table"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/sumifcc-bchart/cmd/chart-server/api/internal/svc"
|
|
|
|
...
|
...
|
@@ -17,11 +18,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
server.AddRoutes(
|
|
|
[]rest.Route{
|
|
|
{
|
|
|
Method: http.MethodGet,
|
|
|
Path: "/chart/:id",
|
|
|
Handler: chart.GetChartHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/chart",
|
|
|
Handler: chart.SaveChartHandler(serverCtx),
|
...
|
...
|
@@ -73,6 +69,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
Path: "/chart/load-data",
|
|
|
Handler: chart.LoadChartDataHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodGet,
|
|
|
Path: "/chart/:id",
|
|
|
Handler: chart.GetChartHandler(serverCtx),
|
|
|
},
|
|
|
},
|
|
|
rest.WithPrefix("/v1"),
|
|
|
)
|
...
|
...
|
@@ -113,11 +114,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
server.AddRoutes(
|
|
|
[]rest.Route{
|
|
|
{
|
|
|
Method: http.MethodGet,
|
|
|
Path: "/app-page/:id",
|
|
|
Handler: page.GetAppPageHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodPost,
|
|
|
Path: "/app-page",
|
|
|
Handler: page.SaveAppPageHandler(serverCtx),
|
...
|
...
|
@@ -156,6 +152,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
[]rest.Route{
|
|
|
{
|
|
|
Method: http.MethodGet,
|
|
|
Path: "/app-page/:id",
|
|
|
Handler: page.GetAppPageHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodGet,
|
|
|
Path: "/api/app-page/get-share-detail/:key",
|
|
|
Handler: page.GetAppPageShareDetailHandler(serverCtx),
|
|
|
},
|
...
|
...
|
@@ -173,4 +174,14 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
},
|
|
|
rest.WithPrefix("/v1"),
|
|
|
)
|
|
|
|
|
|
server.AddRoutes(
|
|
|
[]rest.Route{
|
|
|
{
|
|
|
Method: http.MethodGet,
|
|
|
Path: "/public/:filename",
|
|
|
Handler: public.GetFileHandler(serverCtx),
|
|
|
},
|
|
|
},
|
|
|
)
|
|
|
} |
...
|
...
|
|