Skip to content

Commit 88eaa41

Browse files
committed
Add startup template file
1 parent dde5870 commit 88eaa41

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Umbraco.Core;
2+
using Umbraco.Web;
3+
4+
using Our.Umbraco.GraphQL.Web;
5+
6+
namespace $rootnamespace$
7+
{
8+
public class GraphQLConfig : ApplicationEventHandler
9+
{
10+
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
11+
{
12+
UmbracoDefaultOwinStartup.MiddlewareConfigured += (sender, e) =>
13+
e.AppBuilder.UseUmbracoGraphQL(applicationContext, new GraphQLServerOptions());
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)