mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-02-05 11:09:52 -06:00
24 lines
612 B
Go
24 lines
612 B
Go
package apiv1
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/shroff/phylum/server/internal/api/auth"
|
|
"github.com/shroff/phylum/server/internal/api/v1/fs"
|
|
"github.com/shroff/phylum/server/internal/api/v1/login"
|
|
"github.com/shroff/phylum/server/internal/api/v1/my"
|
|
"github.com/shroff/phylum/server/internal/api/v1/trash"
|
|
"github.com/shroff/phylum/server/internal/api/v1/users"
|
|
)
|
|
|
|
func Setup(r *gin.RouterGroup) {
|
|
// Unauthenticated routes
|
|
login.SetupRoutes(r)
|
|
|
|
// Authenticated routes
|
|
r.Use(auth.CreateHandler())
|
|
fs.SetupRoutes(r)
|
|
my.SetupRoutes(r)
|
|
trash.SetupRoutes(r)
|
|
users.SetupUserRoutes(r)
|
|
}
|