ZeroController as base for frontend
This commit is contained in:
@@ -1,18 +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 DefaultRouteController : Controller
|
||||
public class DefaultRouteController : ZeroController<PageRoute>
|
||||
{
|
||||
public DefaultRouteController()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
{
|
||||
return Json(HttpContext.Request.RouteValues, new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.None });
|
||||
return Json(new { Application, Route }, new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.None });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user