allow anonymous to list activities
This commit is contained in:
parent
ee268571b0
commit
74eedb667f
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ namespace Yavsc.Controllers
|
||||||
{
|
{
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[Route("api/activity")]
|
[Route("api/activity")]
|
||||||
|
[AllowAnonymous]
|
||||||
public class ActivityApiController : Controller
|
public class ActivityApiController : Controller
|
||||||
{
|
{
|
||||||
private ApplicationDbContext _context;
|
private ApplicationDbContext _context;
|
||||||
|
|
@ -147,4 +148,4 @@ namespace Yavsc.Controllers
|
||||||
return _context.Activities.Count(e => e.Code == id) > 0;
|
return _context.Activities.Count(e => e.Code == id) > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue