Expand links API

This commit is contained in:
2024-08-19 14:35:24 +08:00
parent 38b52aec2f
commit 039e174595
7 changed files with 181 additions and 19 deletions

View File

@ -19,6 +19,8 @@ func MapAPIs(app *fiber.App) {
api := app.Group("/api").Name("API")
{
api.Get("/links/:target", getLinkMeta)
api.Use(func(c *fiber.Ctx) error {
if err := exts.EnsureAuthenticated(c); err != nil {
return err