feat: add cache for api
This commit is contained in:
parent
24c75e4306
commit
31087a57c9
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||
namespace Mirea.Api.Endpoint.Controllers.V1;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
[CacheMaxAge(true)]
|
||||
public class CampusController(IMediator mediator) : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||
namespace Mirea.Api.Endpoint.Controllers.V1;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
[CacheMaxAge(true)]
|
||||
public class DisciplineController(IMediator mediator) : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||
namespace Mirea.Api.Endpoint.Controllers.V1;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
[CacheMaxAge(true)]
|
||||
public class FacultyController(IMediator mediator) : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -13,6 +13,7 @@ using System.Threading.Tasks;
|
||||
namespace Mirea.Api.Endpoint.Controllers.V1;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
[CacheMaxAge(true)]
|
||||
public class GroupController(IMediator mediator) : BaseController
|
||||
{
|
||||
private static int GetCourseNumber(string groupName)
|
||||
|
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||
namespace Mirea.Api.Endpoint.Controllers.V1;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
[CacheMaxAge(true)]
|
||||
public class LectureHallController(IMediator mediator) : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -12,6 +12,7 @@ using System.Threading.Tasks;
|
||||
namespace Mirea.Api.Endpoint.Controllers.V1;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
[CacheMaxAge(true)]
|
||||
public class ProfessorController(IMediator mediator) : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user