photoprism/server/server.go

16 lines
263 B
Go
Raw Normal View History

package server
import (
"fmt"
2018-09-06 14:47:32 +02:00
"github.com/gin-gonic/gin"
2018-08-03 15:17:13 +02:00
"github.com/photoprism/photoprism"
)
2018-08-07 20:17:14 +02:00
func Start(address string, port int, conf *photoprism.Config) {
app := gin.Default()
ConfigureRoutes(app, conf)
app.Run(fmt.Sprintf("%s:%d", address, port))
}