25 lines
No EOL
492 B
C#
25 lines
No EOL
492 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Api.Controllers;
|
|
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
public abstract class BaseController<T> : Controller
|
|
{
|
|
[HttpGet(nameof(Create))]
|
|
public async Task<ActionResult> Create()
|
|
{
|
|
//await $"scripts/00magic.sh --param ".Bash();
|
|
return Ok(new {id = 1});
|
|
}
|
|
|
|
/*public async Task<ActionResult> Get(T model)
|
|
{
|
|
|
|
}
|
|
|
|
public async Task<ActionResult> Update(T model)
|
|
{
|
|
|
|
}*/
|
|
} |