Files
phylum/server/internal/api/auth/auth.go
2024-08-06 23:34:55 +05:30

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)
}