Commit 0927948 1 parent 031d97a commit 0927948 Copy full SHA for 0927948
File tree 1 file changed +14
-2
lines changed
src/Digdir.Domain.Dialogporten.GraphQL
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,24 @@ static void BuildAndRun(string[] args)
100
100
app . UseAuthentication ( ) ;
101
101
app . UseAuthorization ( ) ;
102
102
103
+ // app.MapGraphQL()
104
+ // .AllowAnonymous()
105
+ // .WithOptions(new GraphQLServerOptions
106
+ // {
107
+ // EnableSchemaRequests = builder.Environment.IsDevelopment(),
108
+ // Tool = { Enable = builder.Environment.IsDevelopment() }
109
+ // });
110
+
111
+ app . MapBananaCakePop ( "/bcp" ) ;
103
112
app . MapGraphQL ( )
104
- . AllowAnonymous ( )
113
+ . RequireAuthorization ( )
105
114
. WithOptions ( new GraphQLServerOptions
106
115
{
107
116
EnableSchemaRequests = builder . Environment . IsDevelopment ( ) ,
108
- Tool = { Enable = builder . Environment . IsDevelopment ( ) }
117
+ Tool =
118
+ {
119
+ Enable = builder . Environment . IsDevelopment ( ) ,
120
+ }
109
121
} ) ;
110
122
111
123
app . Run ( ) ;
You can’t perform that action at this time.
0 commit comments