/info endpoint (#85)
This commit is contained in:
parent
c3ea45d900
commit
e2d9de191d
11 changed files with 200 additions and 36 deletions
|
|
@ -40,6 +40,7 @@ const (
|
|||
ServiceRootpath Key = `service.rootpath`
|
||||
ServicePageCount Key = `service.pagecount`
|
||||
ServiceEnableMetrics Key = `service.enablemetrics`
|
||||
ServiceMotd Key = `service.motd`
|
||||
|
||||
DatabaseType Key = `database.type`
|
||||
DatabaseHost Key = `database.host`
|
||||
|
|
@ -133,6 +134,8 @@ func InitConfig() {
|
|||
ServiceRootpath.setDefault(exPath)
|
||||
ServicePageCount.setDefault(50)
|
||||
ServiceEnableMetrics.setDefault(false)
|
||||
ServiceMotd.setDefault("")
|
||||
|
||||
// Database
|
||||
DatabaseType.setDefault("sqlite")
|
||||
DatabaseHost.setDefault("localhost")
|
||||
|
|
|
|||
Reference in a new issue