photoprism/internal/server/routes_sharing.go
Michael Mayer 59da5037e6 Server: Add Error 404 Not Found template and change ext to .gohtml #840
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-18 22:19:41 +02:00

17 lines
370 B
Go

package server
import (
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/api"
"github.com/photoprism/photoprism/internal/config"
)
// registerSharingRoutes configures link sharing routes.
func registerSharingRoutes(router *gin.Engine, conf *config.Config) {
s := router.Group(conf.BaseUri("/s"))
{
api.Shares(s)
api.SharePreview(s)
}
}