initial version.
feat: automatically run vite dev server when in Debugger mode. feat: supports hotreload on both js frontend and .net backend.
This commit is contained in:
1 parent
f925e00540
commit
5c81ed18b2
25 files changed
+743
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace WebApplication1.Controllers;
|
||||
|
||||
[Route("api")]
|
||||
[ApiController]
|
||||
[ApiExceptionFilter]
|
||||
public class ApiController : SiteControllerBase
|
||||
{
|
||||
[Route("detail")]
|
||||
[HttpGet]
|
||||
[ResponseCache(CacheProfileName = "NoCache")]
|
||||
public ApiResult<DetailItem> GetDetail(int id)
|
||||
{
|
||||
//throw new PermissionException(500, errorMessage: "test error1");
|
||||
//throw new ApiException(12, "test api exception.");
|
||||
return new DetailItem(id, "Test title");
|
||||
}
|
||||
}
|
||||
|
||||
public record DetailItem(int Id, string Name);
|
||||
Reference in new issue
Block a user