Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix api endpoints line endings to CRLF #2273

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static class @endPointsClassName
{
@:var group = routes.MapGroup("@routePrefix");
}
}
}

group.MapGet("/", () =>
{
Expand All @@ -54,7 +54,7 @@ public static class @endPointsClassName
}
@:@builderExtensions;
}

group.MapGet("/{id}", (int id) =>
{
//return new @modelName { ID = id };
Expand Down Expand Up @@ -138,7 +138,7 @@ public static class @endPointsClassName
{
builderExtensions += $"\n{builderExtensionSpaces}.Produces<{@modelName}>(StatusCodes.Status200OK)";
}
@:@builderExtensions;
@:@builderExtensions;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static class @endPointsClassName
{
@:var group = routes.MapGroup("@routePrefix");
}
}
}

group.MapGet("/", async (@dbContextName db) =>
{
Expand Down Expand Up @@ -93,7 +93,7 @@ public static class @endPointsClassName
}
if (!Model.UseTypedResults)
{
builderExtensions += $"\n{builderExtensionSpaces}.Produces<{@modelName}>(StatusCodes.Status200OK)";
builderExtensions += $"\n{builderExtensionSpaces}.Produces<{@modelName}>(StatusCodes.Status200OK)";
builderExtensions += $"\n{builderExtensionSpaces}.Produces(StatusCodes.Status404NotFound)";
}
@:@builderExtensions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{
@:var group = routes.MapGroup("@routePrefix");
}
}
}

group.MapGet("/", async (@dbContextName db) =>
{
Expand Down Expand Up @@ -82,7 +82,7 @@
}
if (!Model.UseTypedResults)
{
builderExtensions += $"\n{builderExtensionSpaces}.Produces<{@modelName}>(StatusCodes.Status200OK)";
builderExtensions += $"\n{builderExtensionSpaces}.Produces<{@modelName}>(StatusCodes.Status200OK)";
builderExtensions += $"\n{builderExtensionSpaces}.Produces(StatusCodes.Status404NotFound)";
}
@:@builderExtensions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
string resultsExtension = (Model.UseTypedResults ? "TypedResults" : "Results") + ".NoContent()";
string builderExtensionSpaces = new string(' ', 8);
}

public static void @Model.MethodName (this IEndpointRouteBuilder routes)
{
@{
Expand All @@ -27,7 +27,7 @@
{
@:var group = routes.MapGroup("@routePrefix");
}
}
}

group.MapGet("/", () =>
{
Expand All @@ -45,7 +45,7 @@
}
@:@builderExtensions;
}

group.MapGet("/{id}", (int id) =>
{
//return new @modelName { ID = id };
Expand Down Expand Up @@ -129,6 +129,6 @@
{
builderExtensions += $"\n{builderExtensionSpaces}.Produces<{@modelName}>(StatusCodes.Status200OK)";
}
@:@builderExtensions;
@:@builderExtensions;
}
}