Ajout d'un 'Hello World' disponible sur le endpoint '/api/helloworld'

This commit is contained in:
Loic Masi
2026-03-04 13:00:22 +01:00
parent cb5fff33e7
commit a30c7ad435
3 changed files with 14 additions and 1 deletions

3
.gitignore vendored
View File

@@ -4,4 +4,5 @@ obj/
riderModule.iml
/_ReSharper.Caches/
[Ll]ogs/
.idea/
.idea/
.vs

View File

@@ -12,6 +12,12 @@ public class ApiController : ControllerBase
this._logger.LogDebug(1, "NLog injected into VersionController");
}
[HttpGet]
public string HelloWorld()
{
return "Hello World !";
}
[HttpGet]
public IActionResult Version()
{

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>https</ActiveDebugProfile>
</PropertyGroup>
</Project>