- Timestamp:
- Jan 21, 2024, 3:43:25 PM (17 months ago)
- Location:
- trunk/cmd/mai
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmd/mai/main.go
r65 r66 15 15 16 16 "github.com/gofiber/fiber/v2" 17 "github.com/gofiber/fiber/v2/middleware/favicon" 17 18 "github.com/gofiber/fiber/v2/middleware/logger" 18 19 "github.com/gofiber/fiber/v2/middleware/limiter" … … 61 62 }) 62 63 64 app.Use(favicon.New( 65 favicon.Config{ 66 File: conf.staticpath + "/favicon.ico", 67 }, 68 )) 69 63 70 app.Use(logger.New( 64 71 logger.Config{ … … 281 288 Browse: true, 282 289 }) 290 app.Static("/docs", "./docs", fiber.Static{}) 283 291 app.Listen(conf.listen) 284 292 } -
trunk/cmd/mai/readconf.go
r63 r66 11 11 return err 12 12 } 13 14 13 conf.group = cfg.Section("mai").Key("group").String() 15 14 conf.listen = cfg.Section("mai").Key("listen").String()
Note:
See TracChangeset
for help on using the changeset viewer.