api only
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -452,5 +452,4 @@ $RECYCLE.BIN/
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
|
||||
Properties
|
||||
10
Program.cs
10
Program.cs
@@ -1,6 +1,10 @@
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.MapGet("/", () => "Hello World!");
|
||||
var port = Environment.GetEnvironmentVariable("PORT") ?? "3100";
|
||||
app.Run("http://0.0.0.0:" + port);
|
||||
|
||||
app.MapGet("/", () =>
|
||||
{
|
||||
return "Hello World";
|
||||
});
|
||||
app.Run();
|
||||
@@ -4,7 +4,11 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>dotnet_mvc_test</RootNamespace>
|
||||
<RootNamespace>dotnet_mvc_test_2</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user