photoprism/server/server.go

16 lines
263 B
Go
Raw Normal View History

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