feat: ignore user commands

This commit is contained in:
sam 2024-10-29 00:06:39 +01:00
parent a50a8567dd
commit b52df95b65
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
4 changed files with 143 additions and 3 deletions

View file

@ -16,12 +16,10 @@
using System.Net;
using Catalogger.Backend.Database.Models;
using Catalogger.Backend.Database.Repositories;
using NodaTime;
namespace Catalogger.Backend.Api.Middleware;
public class AuthenticationMiddleware(ApiTokenRepository tokenRepository, IClock clock)
: IMiddleware
public class AuthenticationMiddleware(ApiTokenRepository tokenRepository) : IMiddleware
{
public async Task InvokeAsync(HttpContext ctx, RequestDelegate next)
{