mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Do not enable BananaCakePop without HostApiDocumentation
This commit is contained in:
@@ -652,12 +652,16 @@ namespace Tgstation.Server.Host.Core
|
||||
if (internalConfiguration.EnableGraphQL)
|
||||
{
|
||||
logger.LogWarning("Enabling GraphQL. This API is experimental and breaking changes may occur at any time!");
|
||||
var gqlOptions = new GraphQLServerOptions
|
||||
{
|
||||
EnableBatching = true,
|
||||
};
|
||||
|
||||
gqlOptions.Tool.Enable = generalConfiguration.HostApiDocumentation;
|
||||
|
||||
endpoints
|
||||
.MapGraphQL(Routes.GraphQL)
|
||||
.WithOptions(new GraphQLServerOptions
|
||||
{
|
||||
EnableBatching = true,
|
||||
});
|
||||
.WithOptions(gqlOptions);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user