Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

Expand Down
2 changes: 1 addition & 1 deletion src/FluentMinimalApiMapper/AddEndpointExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public static WebApplicationBuilder AddEndpoints(this WebApplicationBuilder buil
throw new InvalidOperationException("Entry assembly not found.");
}

return builder.AddEndpoints(new[] { entryAssembly });
return builder.AddEndpoints([entryAssembly]);
}
}
8 changes: 4 additions & 4 deletions src/FluentMinimalApiMapper/FluentMinimalApiMapper.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageIcon>pandatech.png</PackageIcon>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<Authors>Pandatech</Authors>
<Copyright>MIT</Copyright>
<Version>1.1.0</Version>
<Version>2.0.0</Version>
<PackageId>Pandatech.FluentMinimalApiMapper</PackageId>
<Title>FluentMinimalApiMapper: Effortless Endpoint Integration</Title>
<PackageTags>Pandatech, library, MinimalAPI, AutoMapping, FluentAPI, EndpointRegistration</PackageTags>
<Description>FluentMinimalApiMapper redefines the simplicity of minimal API development, offering an intuitive and automated approach to endpoint mapping. With a focus on streamlined integration, this NuGet package by PandaTech is the perfect tool for developers looking to enhance the efficiency and readability of their modular applications. Dive into the seamless world of API development with FluentMinimalApiMapper, where every route is a journey simplified.</Description>
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-fluent-minimal-api-mapper</RepositoryUrl>
<PackageReleaseNotes>Fix bug</PackageReleaseNotes>
<PackageReleaseNotes>.Net 9 upgrade</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand All @@ -23,7 +23,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/FluentMinimalApiMapper/MapEndpointExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace FluentMinimalApiMapper;

public static class MapEndpointExtension
{
public static IApplicationBuilder MapEndpoints(this WebApplication app, RouteGroupBuilder? routeGroupBuilder = null)
public static WebApplication MapEndpoints(this WebApplication app, RouteGroupBuilder? routeGroupBuilder = null)
{
var endpoints = app.Services
.GetRequiredService<IEnumerable<IEndpoint>>();
Expand Down