mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 20:26:26 +08:00
✨ bootstrap
This commit is contained in:
@ -36,3 +36,11 @@ func GetSettingsByType(ctx *fiber.Ctx) error {
|
||||
}
|
||||
return SuccessResp(ctx,settings)
|
||||
}
|
||||
|
||||
func GetSettingsPublic(ctx *fiber.Ctx) error {
|
||||
settings, err := model.GetSettingByType(0)
|
||||
if err != nil {
|
||||
return ErrorResp(ctx, err, 400)
|
||||
}
|
||||
return SuccessResp(ctx,settings)
|
||||
}
|
Reference in New Issue
Block a user