mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 19:37:41 +08:00
✨ bootstrap
This commit is contained in:
@@ -10,11 +10,12 @@ func InitApiRouter(app *fiber.App) {
|
||||
{
|
||||
// TODO check accounts
|
||||
public.Post("/path", Path)
|
||||
public.Get("/settings", GetSettingsPublic)
|
||||
}
|
||||
|
||||
admin := app.Group("/api/admin")
|
||||
{
|
||||
// TODO auth
|
||||
admin.Use(Auth)
|
||||
admin.Get("/settings", GetSettingsByType)
|
||||
admin.Post("/settings", SaveSettings)
|
||||
admin.Post("/account", SaveAccount)
|
||||
|
||||
Reference in New Issue
Block a user