🎇 allow delete deprecated setting

This commit is contained in:
微凉
2021-12-08 19:36:07 +08:00
parent a15dae291e
commit 09e63027d9
5 changed files with 45 additions and 10 deletions

View File

@ -33,6 +33,8 @@ func InitApiRouter(r *gin.Engine) {
admin.GET("/login", common.Login)
admin.GET("/settings", controllers.GetSettings)
admin.POST("/settings", controllers.SaveSettings)
admin.DELETE("/setting", controllers.DeleteSetting)
admin.POST("/account/create", controllers.CreateAccount)
admin.POST("/account/save", controllers.SaveAccount)
admin.GET("/accounts", controllers.GetAccounts)