chore: update comments (#2195)

This commit is contained in:
boojack
2023-09-06 21:59:20 +08:00
committed by GitHub
parent 8b1f7c52aa
commit 0d50f5bd08

View File

@ -85,10 +85,13 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
}
s.ID = serverID
// Serve frontend.
embedFrontend(e)
// This will serve Swagger UI at /api/index.html and Swagger 2.0 spec at /api/doc.json
// Serve swagger in dev/demo mode.
if profile.Mode == "dev" || profile.Mode == "demo" {
e.GET("/api/*", echoSwagger.WrapHandler)
}
secret := "usememos"
if profile.Mode == "prod" {