From c1b73616a19694b45c91ba5a3c10e8dc49ae2965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Pilgaard=20Gr=C3=B8ndahl?= Date: Fri, 2 Jun 2023 00:01:39 +0200 Subject: [PATCH] make looking for api not require auth --- src/web/Server/Features/Profile/LookingForApi.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/web/Server/Features/Profile/LookingForApi.cs b/src/web/Server/Features/Profile/LookingForApi.cs index bc137882..19032fb5 100644 --- a/src/web/Server/Features/Profile/LookingForApi.cs +++ b/src/web/Server/Features/Profile/LookingForApi.cs @@ -1,6 +1,4 @@ -using Jordnaer.Server.Authorization; using Jordnaer.Server.Database; -using Jordnaer.Server.Extensions; using Jordnaer.Shared; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; @@ -13,10 +11,6 @@ public static RouteGroupBuilder MapLookingFor(this IEndpointRouteBuilder routes) { var group = routes.MapGroup("api/looking-for"); - group.RequireAuthorization(builder => builder.RequireCurrentUser()); - - group.RequirePerUserRateLimit(); - group.MapGet("", async Task> ([FromServices] JordnaerDbContext context) => await context.LookingFor.AsNoTracking().ToListAsync());