start alias field

This commit is contained in:
2020-10-10 15:22:51 +02:00
parent 8c6968f19d
commit 3dbf007e2a
7 changed files with 220 additions and 0 deletions
+13
View File
@@ -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));
}
}