try rewirte of all backoffice controllers to ApiControllers
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using zero.Core.Routing;
|
||||
|
||||
namespace zero.Web.Controllers
|
||||
{
|
||||
public class ZeroFrontendController : ZeroController<PageRoute>
|
||||
{
|
||||
public ZeroFrontendController()
|
||||
{
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
{
|
||||
return Json(new { Application, Route }, new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.None });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user