Various changes (Controller and test)

- Added RootController
- Added new methods in BaseController
- Added BaseResponse
- Changed Program structure
- Added first basic test for Program
This commit is contained in:
2024-05-04 17:51:11 +02:00
parent d3ba42e57a
commit 708966fcf8
8 changed files with 172 additions and 28 deletions

View File

@@ -16,7 +16,7 @@ namespace BasicDotnetTemplate.MainProject.Controllers
[Route("version")]
public IActionResult GetVersion()
{
return Ok(new { version = _appSettings.Settings.Version });
return Success(String.Empty, _appSettings?.Settings?.Version);
}
}
}