update
This commit is contained in:
parent
d4e7f83131
commit
cfaf82def3
12 changed files with 232 additions and 10 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/infinite-iroha/touka"
|
||||
)
|
||||
|
||||
func ApiGroup(v0 touka.IRouter, cdb *db.ConfigDB, cfg *config.Config) {
|
||||
func ApiGroup(v0 touka.IRouter, cdb *db.ConfigDB, cfg *config.Config, version string) {
|
||||
api := v0.Group("/api")
|
||||
api.GET("/config/filenames", func(c *touka.Context) {
|
||||
filenames, err := cdb.GetFileNames()
|
||||
|
|
@ -20,6 +20,8 @@ func ApiGroup(v0 touka.IRouter, cdb *db.ConfigDB, cfg *config.Config) {
|
|||
c.JSON(200, filenames)
|
||||
})
|
||||
|
||||
api.GET("/info", infoHandle(version))
|
||||
|
||||
// 配置参数相关
|
||||
cfgr := api.Group("/config")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue