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