mirror of https://gitee.com/answerdev/answer.git
27 lines
676 B
Go
27 lines
676 B
Go
package controller_admin
|
|
|
|
import (
|
|
"github.com/answerdev/answer/internal/base/handler"
|
|
"github.com/answerdev/answer/internal/schema"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type ThemeController struct{}
|
|
|
|
// NewThemeController new theme controller.
|
|
func NewThemeController() *ThemeController {
|
|
return &ThemeController{}
|
|
}
|
|
|
|
// GetThemeOptions godoc
|
|
// @Summary Get theme options
|
|
// @Description Get theme options
|
|
// @Security ApiKeyAuth
|
|
// @Tags admin
|
|
// @Produce json
|
|
// @Success 200 {object} handler.RespBody{}
|
|
// @Router /answer/admin/api/theme/options [get]
|
|
func (t *ThemeController) GetThemeOptions(ctx *gin.Context) {
|
|
handler.HandleResponse(ctx, nil, schema.GetThemeOptions)
|
|
}
|