1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed Paste/Upload APIs not allowing unauthed requests

This commit is contained in:
Chris Woodward 2019-01-29 10:31:59 -08:00
parent 7733312861
commit 1c18526244
3 changed files with 805 additions and 803 deletions

View File

@ -23,6 +23,7 @@ namespace Teknik.Areas.API.V1.Controllers
public PasteAPIv1Controller(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
[HttpPost]
[AllowAnonymous]
public IActionResult Paste(PasteAPIv1Model model)
{
try

View File

@ -24,6 +24,7 @@ namespace Teknik.Areas.API.V1.Controllers
public ShortenAPIv1Controller(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
[HttpPost]
[AllowAnonymous]
public IActionResult Shorten(ShortenAPIv1Model model)
{
try

1606
Teknik/package-lock.json generated

File diff suppressed because it is too large Load Diff