chore: update comments (#2195)

pull/2196/head
boojack 2 years ago committed by GitHub
parent 8b1f7c52aa
commit 0d50f5bd08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
e.GET("/api/*", echoSwagger.WrapHandler)
// Serve swagger in dev/demo mode.
if profile.Mode == "dev" || profile.Mode == "demo" {
e.GET("/api/*", echoSwagger.WrapHandler)
}
secret := "usememos"
if profile.Mode == "prod" {

Loading…
Cancel
Save