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:
parent
7733312861
commit
1c18526244
@ -23,6 +23,7 @@ namespace Teknik.Areas.API.V1.Controllers
|
|||||||
public PasteAPIv1Controller(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
|
public PasteAPIv1Controller(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
[AllowAnonymous]
|
||||||
public IActionResult Paste(PasteAPIv1Model model)
|
public IActionResult Paste(PasteAPIv1Model model)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -24,6 +24,7 @@ namespace Teknik.Areas.API.V1.Controllers
|
|||||||
public ShortenAPIv1Controller(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
|
public ShortenAPIv1Controller(ILogger<Logger> logger, Config config, TeknikEntities dbContext) : base(logger, config, dbContext) { }
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
[AllowAnonymous]
|
||||||
public IActionResult Shorten(ShortenAPIv1Model model)
|
public IActionResult Shorten(ShortenAPIv1Model model)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
1606
Teknik/package-lock.json
generated
1606
Teknik/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user