tag reorg and mass routes

This commit is contained in:
2020-05-15 23:29:54 +00:00
parent 443c95b36c
commit 7a7b40ce1e
2 changed files with 3 additions and 5 deletions

View File

@@ -1,8 +1,6 @@
PRIORITY - ALWAYS Lowest level stuff first PRIORITY - ALWAYS Lowest level stuff first
=-=-=-=- =-=-=-=-
todo: tags - does server ensure only unique tags are saved even if there are dupes in the list?
MASS TAG OPS MASS TAG OPS
NOTE: separate routes for seperate things just to avoid issues, i.e. dont' conflate two different functions in same route NOTE: separate routes for seperate things just to avoid issues, i.e. dont' conflate two different functions in same route
i.e. search and replace, not search and remove i.e. search and replace, not search and remove

View File

@@ -19,10 +19,10 @@ namespace AyaNova.Api.Controllers
[Route("api/v{version:apiVersion}/tag-list")] [Route("api/v{version:apiVersion}/tag-list")]
[Produces("application/json")] [Produces("application/json")]
[Authorize] [Authorize]
public class TagListController : ControllerBase public class TagController : ControllerBase
{ {
private readonly AyContext ct; private readonly AyContext ct;
private readonly ILogger<TagListController> log; private readonly ILogger<TagController> log;
private readonly ApiServerState serverState; private readonly ApiServerState serverState;
@@ -32,7 +32,7 @@ namespace AyaNova.Api.Controllers
/// <param name="dbcontext"></param> /// <param name="dbcontext"></param>
/// <param name="logger"></param> /// <param name="logger"></param>
/// <param name="apiServerState"></param> /// <param name="apiServerState"></param>
public TagListController(AyContext dbcontext, ILogger<TagListController> logger, ApiServerState apiServerState) public TagController(AyContext dbcontext, ILogger<TagController> logger, ApiServerState apiServerState)
{ {
ct = dbcontext; ct = dbcontext;
log = logger; log = logger;