Files
drive/apps/backend/internal/virtualfs/scoped_router.go

14 lines
375 B
Go
Raw Normal View History

2025-12-27 19:27:08 +00:00
package virtualfs
import "github.com/gofiber/fiber/v2"
// ScopedRouter is a router that guarantees reqctx.VFSAccessScope(c)
// returns a valid *Scope for all registered routes.
//
// This is the base type for routers that provide VFS access scope.
2026-01-01 18:29:52 +00:00
// More specific router types may embed this
2025-12-27 19:27:08 +00:00
// to provide additional guarantees.
type ScopedRouter struct {
fiber.Router
}