mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Embedded javascript plugins (#1393)
This commit is contained in:
@@ -161,6 +161,9 @@ func Start() {
|
||||
|
||||
gqlHandler := handler.GraphQL(models.NewExecutableSchema(models.Config{Resolvers: resolver}), recoverFunc, websocketUpgrader, websocketKeepAliveDuration, maxUploadSize)
|
||||
|
||||
// register GQL handler with plugin cache
|
||||
manager.GetInstance().PluginCache.RegisterGQLHandler(gqlHandler)
|
||||
|
||||
r.Handle("/graphql", gqlHandler)
|
||||
r.Handle("/playground", handler.Playground("GraphQL playground", "/graphql"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user