Feat: GET Site/Config getting global configuration

This commit is contained in:
HFO4
2019-11-22 19:33:06 +08:00
parent 9d8a462dc4
commit 370a1a0c9f
4 changed files with 65 additions and 2 deletions

View File

@@ -29,11 +29,13 @@ func InitRouter() *gin.Engine {
v3 := r.Group("/Api/V3")
{
// 测试用路由
v3.GET("Ping", controllers.Ping)
v3.GET("Site/Ping", controllers.Ping)
// 用户登录
v3.POST("User/Session", controllers.UserLogin)
// 验证码
v3.GET("Captcha", controllers.Captcha)
// 站点全局配置
v3.GET("Site/Config", controllers.SiteConfig)
// 需要登录保护的
auth := v3.Group("")