Add video route (still unprotected)

This commit is contained in:
viktorstrate
2020-07-11 15:57:58 +02:00
parent 990a592fcc
commit f537b1d608
7 changed files with 169 additions and 4 deletions

View File

@@ -81,6 +81,9 @@ func main() {
photoRouter := endpointRouter.PathPrefix("/photo").Subrouter()
routes.RegisterPhotoRoutes(db, photoRouter)
videoRouter := endpointRouter.PathPrefix("/video").Subrouter()
routes.RegisterVideoRoutes(db, videoRouter)
shouldServeUI := os.Getenv("SERVE_UI") == "1"
if shouldServeUI {