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:
22
MainProject/Controllers/RootController.cs
Normal file
22
MainProject/Controllers/RootController.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using BasicDotnetTemplate.MainProject.Models.Settings;
|
||||
|
||||
namespace BasicDotnetTemplate.MainProject.Controllers
|
||||
{
|
||||
public class RootController : BaseController
|
||||
{
|
||||
public RootController(
|
||||
IConfiguration configuration
|
||||
) : base(configuration)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("")]
|
||||
public IActionResult GetVersion()
|
||||
{
|
||||
return Success(String.Empty, "Success");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user