Unverified Commit 0d50f5bd authored by boojack's avatar boojack Committed by GitHub

chore: update comments (#2195)

parent 8b1f7c52
...@@ -85,10 +85,13 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store ...@@ -85,10 +85,13 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
} }
s.ID = serverID s.ID = serverID
// Serve frontend.
embedFrontend(e) 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.
e.GET("/api/*", echoSwagger.WrapHandler) if profile.Mode == "dev" || profile.Mode == "demo" {
e.GET("/api/*", echoSwagger.WrapHandler)
}
secret := "usememos" secret := "usememos"
if profile.Mode == "prod" { if profile.Mode == "prod" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment