start alias field
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using zero.Core.Api;
|
||||
|
||||
namespace zero.Web.Controllers
|
||||
{
|
||||
public class UtilsController : BackofficeController
|
||||
{
|
||||
/// <summary>
|
||||
/// Generate alias from name
|
||||
/// </summary>
|
||||
public IActionResult GenerateAlias([FromQuery] string name) => Json(Safenames.Alias(name));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user