|
@ -9,7 +9,7 @@ |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
[Route("api/v1/[controller]")]
|
|
|
[Route("api/v1/[controller]")]
|
|
|
//[Authorize]
|
|
|
|
|
|
|
|
|
[Authorize] |
|
|
public class CampaignsController : Controller |
|
|
public class CampaignsController : Controller |
|
|
{ |
|
|
{ |
|
|
private readonly MarketingContext _context; |
|
|
private readonly MarketingContext _context; |
|
@ -19,7 +19,6 @@ |
|
|
_context = context; |
|
|
_context = context; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
public async Task<IActionResult> GetAllCampaigns() |
|
|
public async Task<IActionResult> GetAllCampaigns() |
|
|
{ |
|
|
{ |
|
|