mirror of https://github.com/Squidex/squidex.git
Browse Source
* Use old method again. * Proper graphql header fix. * Use newer caddy version. * Fix testspull/971/head
committed by
GitHub
11 changed files with 141 additions and 110 deletions
@ -1,35 +0,0 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using GraphQL.Server.Transports.AspNetCore; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Net.Http.Headers; |
|||
|
|||
namespace Squidex.Web.GraphQL; |
|||
|
|||
public sealed class GraphQLRunner |
|||
{ |
|||
private readonly GraphQLHttpMiddleware<DummySchema> middleware; |
|||
|
|||
public GraphQLRunner(IServiceProvider serviceProvider) |
|||
{ |
|||
RequestDelegate next = x => Task.CompletedTask; |
|||
|
|||
var options = new GraphQLHttpMiddlewareOptions |
|||
{ |
|||
DefaultResponseContentType = new MediaTypeHeaderValue("application/json") |
|||
}; |
|||
|
|||
middleware = ActivatorUtilities.CreateInstance<GraphQLHttpMiddleware<DummySchema>>(serviceProvider, next, options); |
|||
} |
|||
|
|||
public Task InvokeAsync(HttpContext context) |
|||
{ |
|||
return middleware.InvokeAsync(context); |
|||
} |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
namespace Squidex.Web.Pipeline; |
|||
|
|||
public sealed class IgnoreCacheFilterAttribute : Attribute |
|||
{ |
|||
} |
|||
Loading…
Reference in new issue