mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-04-28 16:20:29 -05:00
[server] Serve public resources
This commit is contained in:
@@ -2,6 +2,7 @@ package serve
|
||||
|
||||
import (
|
||||
"github.com/fvbock/endless"
|
||||
"github.com/shroff/phylum/server/internal/api/public"
|
||||
apiv1 "github.com/shroff/phylum/server/internal/api/v1"
|
||||
"github.com/shroff/phylum/server/internal/api/webdav"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -19,6 +20,7 @@ func SetupCommand() *cobra.Command {
|
||||
|
||||
webdav.SetupHandler(engine.Group(config.GetString("webdav_prefix")))
|
||||
apiv1.Setup(engine.Group("/api/v1"))
|
||||
public.Setup(engine.Group("/public"))
|
||||
|
||||
server := endless.NewServer(config.GetString("listen"), engine)
|
||||
server.BeforeBegin = func(addr string) {
|
||||
|
||||
Reference in New Issue
Block a user