From d847063a79cc729a2f7a4b45268c4b3796f30175 Mon Sep 17 00:00:00 2001 From: evanlihou Date: Sun, 17 Nov 2024 12:32:30 -0500 Subject: [PATCH] Fix typo --- FiMAdminApi/Endpoints/TruckRoutesEndpoints.cs | 16 +++------------- FiMAdminApi/Program.cs | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/FiMAdminApi/Endpoints/TruckRoutesEndpoints.cs b/FiMAdminApi/Endpoints/TruckRoutesEndpoints.cs index 6192971..ad1cead 100644 --- a/FiMAdminApi/Endpoints/TruckRoutesEndpoints.cs +++ b/FiMAdminApi/Endpoints/TruckRoutesEndpoints.cs @@ -14,7 +14,7 @@ namespace FiMAdminApi.Endpoints; public static class TruckRoutesEndpoints { - public static WebApplication RegisterTruckRotuesEndpoints(this WebApplication app, ApiVersionSet vs) + public static WebApplication RegisterTruckRoutesEndpoints(this WebApplication app, ApiVersionSet vs) { var truckRoutesGroup = app.MapGroup("/api/v{apiVersion:apiVersion}/routes").WithApiVersionSet(vs) .HasApiVersion(1).WithTags("Truck Routes").RequireAuthorization(nameof(GlobalPermission.Equipment_Manage)); @@ -72,22 +72,12 @@ private static async Task, NotFound, ValidationProblem>> public class CreateTruckRoute { [Required] - public string Name { get; set; } + public required string Name { get; set; } } public class EditTruckRoute { [Required] - public string Name { get; set; } + public required string Name { get; set; } } - - // private static async Task> GetTeam([FromRoute] int teamId, [FromRoute] int seasonYear, [FromServices] IServiceProvider sp) - // { - // var client = sp.GetKeyedService("FrcEvents"); - // - // return client.GetTeamsByNumbers(new Season() - // { - // StartTime = new DateTime(seasonYear, 1, 2) - // }, []) - // } } \ No newline at end of file diff --git a/FiMAdminApi/Program.cs b/FiMAdminApi/Program.cs index 1b4accf..de5e84d 100644 --- a/FiMAdminApi/Program.cs +++ b/FiMAdminApi/Program.cs @@ -109,7 +109,7 @@ .RegisterUsersEndpoints(globalVs) .RegisterEventsCreateEndpoints(globalVs) .RegisterEventsEndpoints(globalVs) - .RegisterTruckRotuesEndpoints(globalVs) + .RegisterTruckRoutesEndpoints(globalVs) .RegisterEventSyncEndpoints(globalVs) .RegisterMatchesEndpoints(globalVs);