Browse Source

Fixed Paste/Upload APIs not allowing unauthed requests

master
Chris Woodward 7 months ago
parent
commit
1c18526244

+ 1
- 0
Teknik/Areas/API/V1/Controllers/PasteAPIv1Controller.cs 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

+ 1
- 0
Teknik/Areas/API/V1/Controllers/ShortenAPIv1Controller.cs 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

+ 803
- 803
Teknik/package-lock.json
File diff suppressed because it is too large
View File


Loading…
Cancel
Save