2022-10-18 14:21:23 +02:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
2023-02-10 15:53:01 +01:00
|
|
|
"github.com/photoprism/photoprism/internal/api"
|
2022-10-18 14:21:23 +02:00
|
|
|
"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)
|
|
|
|
}
|
|
|
|
}
|