mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 21:31:18 +00:00
14 lines
403 B
Go
14 lines
403 B
Go
|
|
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.
|
||
|
|
// More specific router types (like account.ScopedRouter) may embed this
|
||
|
|
// to provide additional guarantees.
|
||
|
|
type ScopedRouter struct {
|
||
|
|
fiber.Router
|
||
|
|
}
|