Skip to content

Commit a86047a

Browse files
committed
Added ping controller.
1 parent 700b0c5 commit a86047a

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
3+
namespace RadarrAPI.Controllers
4+
{
5+
[Route("v1/[controller]")]
6+
public class PingController
7+
{
8+
[HttpGet]
9+
public string Ping()
10+
{
11+
return "Pong";
12+
}
13+
}
14+
}

RadarrAPI/RadarrAPI.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild3-final" />
2222
</ItemGroup>
2323
<ItemGroup>
24-
<Content Update="appsettings.Development.json">
25-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
26-
</Content>
2724
<Content Update="appsettings.json">
2825
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
2926
</Content>
3027
<Content Update="appsettings.Production.json">
3128
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
3229
</Content>
30+
<Content Update="appsettings.Development.json">
31+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
32+
</Content>
3333
</ItemGroup>
3434
<ItemGroup>
3535
<None Update="nlog.config">

0 commit comments

Comments
 (0)