mirror of
https://github.com/usememos/memos.git
synced 2025-10-26 22:36:16 +08:00
chore: update comments (#2195)
This commit is contained in:
parent
8b1f7c52aa
commit
0d50f5bd08
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue