mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-08 20:49:45 -06:00
17 lines
287 B
Go
17 lines
287 B
Go
package auth
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/shroff/phylum/server/internal/app/core"
|
|
)
|
|
|
|
const keyFileSystem = "filesystem"
|
|
|
|
func GetFileSystem(c *gin.Context) core.FileSystem {
|
|
val, ok := c.Get(keyFileSystem)
|
|
if !ok {
|
|
return nil
|
|
}
|
|
return val.(core.FileSystem)
|
|
}
|