Adjust build process

This commit is contained in:
Florian Hoss 2023-07-05 11:05:51 +02:00
parent 99add9dbe2
commit f64d5c2420
8 changed files with 31 additions and 6 deletions

View file

@ -75,13 +75,13 @@ func SetupRoutes(e *echo.Echo, ctrl *controller.Controller, env *env.Config) {
health := api.Group("/health", authHeader)
{
health.GET("", func(ctx echo.Context) error {
return ctx.String(http.StatusOK, ".")
return ctx.String(http.StatusOK, env.Version)
})
}
if env.SwaggerHost != "" {
docs.SwaggerInfo.Title = "Cafe"
docs.SwaggerInfo.Description = "This is the backend of a cafe"
docs.SwaggerInfo.Title = "Café Plätschwiesle"
docs.SwaggerInfo.Description = "This is the backend of Café Plätschwiesle"
docs.SwaggerInfo.Version = env.Version
docs.SwaggerInfo.BasePath = "/api"
parsed, _ := url.Parse(env.SwaggerHost)