photoprism/internal/server/routes_sharing.go

18 lines
370 B
Go
Raw Normal View History

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