@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)
| 616 | // @Security Timestamp |
| 617 | // @Router /websites/auths [post] |
| 618 | func (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 |
no test coverage detected