MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GetAuthConfig

Method GetAuthConfig

agent/app/api/v2/website.go:618–629  ·  view source on GitHub ↗

@Tags Website @Summary Get AuthBasic conf @Accept json @Param request body request.NginxAuthReq true "request" @Success 200 {object} response.NginxAuthRes @Security ApiKeyAuth @Security Timestamp @Router /websites/auths [post]

(c *gin.Context)

Source from the content-addressed store, hash-verified

616// @Security Timestamp
617// @Router /websites/auths [post]
618func (b *BaseApi) GetAuthConfig(c *gin.Context) {
619 var req request.NginxAuthReq
620 if err := helper.CheckBindAndValidate(&req, c); err != nil {
621 return
622 }
623 res, err := websiteService.GetAuthBasics(req)
624 if err != nil {
625 helper.InternalServer(c, err)
626 return
627 }
628 helper.SuccessWithData(c, res)
629}
630
631// @Tags Website
632// @Summary Get AuthBasic conf

Callers 1

Calls 1

GetAuthBasicsMethod · 0.65

Tested by

no test coverage detected