mirror of
https://github.com/usememos/memos.git
synced 2025-11-06 15:36:13 +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
|
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" {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue