photoprism/internal/server/routes_sharing.go
Michael Mayer 7ef544fa53 Docs: Improve inline comments of the internal/server package #782 #3943
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 12:46:00 +01:00

17 lines
368 B
Go

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