remove HeaderFilter.cs, no longer needed
This commit is contained in:
parent
381df5f38d
commit
abcec0ae10
|
@ -1,24 +0,0 @@
|
||||||
using Microsoft.OpenApi.Models;
|
|
||||||
using Swashbuckle.AspNetCore.SwaggerGen;
|
|
||||||
|
|
||||||
namespace InnovEnergy.App.Backend;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// This is for convenient testing! Todo throw me out?
|
|
||||||
/// Operation filter to add the requirement of the custom header
|
|
||||||
/// </summary>
|
|
||||||
public class HeaderFilter : IOperationFilter
|
|
||||||
{
|
|
||||||
public void Apply(OpenApiOperation operation, OperationFilterContext context)
|
|
||||||
{
|
|
||||||
operation.Parameters ??= new List<OpenApiParameter>();
|
|
||||||
|
|
||||||
operation.Parameters.Add(new OpenApiParameter
|
|
||||||
{
|
|
||||||
Name = "auth",
|
|
||||||
In = ParameterLocation.Header,
|
|
||||||
Content = new Dictionary<String, OpenApiMediaType>(),
|
|
||||||
Required = false
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue