mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-19 16:46:30 +08:00
feat: integrate alist with casdoor (#1453)
* feat: integrate alist with casdoor * fix: casdoor as an option for login Co-authored-by: wenxuan70 <t736660416@gmail.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/Xhofe/alist/server/common"
|
||||
"github.com/Xhofe/alist/server/controllers"
|
||||
"github.com/Xhofe/alist/server/controllers/file"
|
||||
"github.com/Xhofe/alist/server/middlewares"
|
||||
@@ -35,8 +34,11 @@ func InitApiRouter(r *gin.Engine) {
|
||||
|
||||
admin := api.Group("/admin")
|
||||
{
|
||||
admin.GET("/verify", controllers.Verify)
|
||||
admin.GET("/get_redirect_url", controllers.GetRedirectUrl)
|
||||
admin.POST("/oauth", controllers.OAuth)
|
||||
|
||||
admin.Use(middlewares.Auth)
|
||||
admin.Any("/login", common.Login)
|
||||
admin.GET("/settings", controllers.GetSettings)
|
||||
admin.POST("/settings", controllers.SaveSettings)
|
||||
admin.DELETE("/setting", controllers.DeleteSetting)
|
||||
|
||||
Reference in New Issue
Block a user