Skip to content

Commit 7bc76de

Browse files
committed
--wip-- [skip ci]
1 parent 76ae69b commit 7bc76de

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/Digdir.Domain.Dialogporten.GraphQL/Program.cs

+14-2
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,24 @@ static void BuildAndRun(string[] args)
100100
app.UseAuthentication();
101101
app.UseAuthorization();
102102

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");
103112
app.MapGraphQL()
104-
.AllowAnonymous()
113+
.RequireAuthorization()
105114
.WithOptions(new GraphQLServerOptions
106115
{
107116
EnableSchemaRequests = builder.Environment.IsDevelopment(),
108-
Tool = { Enable = builder.Environment.IsDevelopment() }
117+
Tool =
118+
{
119+
Enable = builder.Environment.IsDevelopment(),
120+
}
109121
});
110122

111123
app.Run();

0 commit comments

Comments
 (0)