diff --git a/app/controllers/login.go b/app/controllers/login.go index 86c98ff..bfd1d02 100644 --- a/app/controllers/login.go +++ b/app/controllers/login.go @@ -1,6 +1,7 @@ package controllers import ( + "fmt" "rustdesk-api-server/app/dto" "rustdesk-api-server/app/services" "rustdesk-api-server/utils/beegoHelper" @@ -65,5 +66,12 @@ func (ctl *LoginController) Login() { }) } + if ctl.Ctx.Input.IsGet() { + fmt.Println(ctl.Ctx.Request.URL.Query()) + ctl.JSON(common.JsonResult{ + Code: -1, + Error: "Not -yet- implemented", + }) + } } diff --git a/routers/router.go b/routers/router.go index 7cef64f..ad20dd6 100644 --- a/routers/router.go +++ b/routers/router.go @@ -28,6 +28,7 @@ func init() { beego.Router("/api/heartbeat", &controllers.HeartController{}, "post:Heart") beego.Router("/api/sysinfo", &controllers.SysinfoController{}, "post:Sysinfo") beego.Router("/api/login", &controllers.LoginController{}, "post:Login") + beego.Router("/api/login-options", &controllers.LoginController{}, "get:Login") beego.Router("/api/login-options", &controllers.LoginController{}, "post:Login") beego.Router("/api/ab", &controllers.AddressBookController{}, "post:Update") // for v1.2.2 client compatiblity