Ajout d'un 'Hello World' disponible sur le endpoint '/api/helloworld'
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ riderModule.iml
|
|||||||
/_ReSharper.Caches/
|
/_ReSharper.Caches/
|
||||||
[Ll]ogs/
|
[Ll]ogs/
|
||||||
.idea/
|
.idea/
|
||||||
|
.vs
|
||||||
@@ -12,6 +12,12 @@ public class ApiController : ControllerBase
|
|||||||
this._logger.LogDebug(1, "NLog injected into VersionController");
|
this._logger.LogDebug(1, "NLog injected into VersionController");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
public string HelloWorld()
|
||||||
|
{
|
||||||
|
return "Hello World !";
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IActionResult Version()
|
public IActionResult Version()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user