Skip to content

Commit

Permalink
make looking for api not require auth
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Jun 1, 2023
1 parent 812d5a8 commit c1b7361
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/web/Server/Features/Profile/LookingForApi.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<List<LookingFor>> ([FromServices] JordnaerDbContext context) =>
await context.LookingFor.AsNoTracking().ToListAsync());

Expand Down

0 comments on commit c1b7361

Please sign in to comment.