✨ Expand links API
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user