mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-04 02:59:16 -05:00
21 lines
482 B
Go
21 lines
482 B
Go
package apiv1
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"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/users"
|
|
)
|
|
|
|
func Setup(r *gin.RouterGroup) {
|
|
// Unauthenticated routes
|
|
login.SetupRoutes(r)
|
|
|
|
// Authenticated routes
|
|
r.Use(CreateApiAuthHandler())
|
|
fs.SetupRoutes(r)
|
|
my.SetupRoutes(r)
|
|
users.SetupUserRoutes(r)
|
|
}
|