Improve image processing

This commit is contained in:
viktorstrate
2020-02-09 12:53:21 +01:00
parent 517286ff38
commit 9a8701ecd0
8 changed files with 453 additions and 251 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/viktorstrate/photoview/api/database"
"github.com/viktorstrate/photoview/api/graphql/auth"
"github.com/viktorstrate/photoview/api/routes"
"github.com/99designs/gqlgen/handler"
photoview_graphql "github.com/viktorstrate/photoview/api/graphql"
@@ -61,6 +62,8 @@ func main() {
router.Handle("/", handler.Playground("GraphQL playground", "/graphql"))
router.Handle("/graphql", handler.GraphQL(photoview_graphql.NewExecutableSchema(graphqlConfig)))
router.Mount("/image", routes.ImageRoutes())
log.Printf("🚀 Graphql playground ready at http://localhost:%s/", port)
log.Fatal(http.ListenAndServe(":"+port, router))
}