add app wgt
This commit is contained in:
		| @@ -5,6 +5,7 @@ import ( | ||||
| 	"net/http" | ||||
|  | ||||
| 	agent "tydata-server/app/user/cmd/api/internal/handler/agent" | ||||
| 	app "tydata-server/app/user/cmd/api/internal/handler/app" | ||||
| 	auth "tydata-server/app/user/cmd/api/internal/handler/auth" | ||||
| 	notification "tydata-server/app/user/cmd/api/internal/handler/notification" | ||||
| 	pay "tydata-server/app/user/cmd/api/internal/handler/pay" | ||||
| @@ -100,6 +101,17 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { | ||||
| 		rest.WithPrefix("/api/v1/agent"), | ||||
| 	) | ||||
|  | ||||
| 	server.AddRoutes( | ||||
| 		[]rest.Route{ | ||||
| 			{ | ||||
| 				Method:  http.MethodGet, | ||||
| 				Path:    "/app/version", | ||||
| 				Handler: app.GetAppVersionHandler(serverCtx), | ||||
| 			}, | ||||
| 		}, | ||||
| 		rest.WithPrefix("/api/v1"), | ||||
| 	) | ||||
|  | ||||
| 	server.AddRoutes( | ||||
| 		[]rest.Route{ | ||||
| 			{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user