change routes

This commit is contained in:
Vitalick Kovalenko 2023-12-23 00:47:28 +03:00
parent f0a59dc045
commit d0a68ee019

View File

@ -10,7 +10,7 @@ using Microsoft.IdentityModel.Tokens;
namespace CyberBoom.Controllers; namespace CyberBoom.Controllers;
[ApiController] [ApiController]
[Route("[controller]")] [Route("/api/[controller]")]
public class UserController : ControllerBase public class UserController : ControllerBase
{ {
private static readonly string[] Summaries = new[] private static readonly string[] Summaries = new[]
@ -73,8 +73,8 @@ public class UserController : ControllerBase
[ApiController] [ApiController]
[Route("[controller]")] [Route("/api/[controller]")]
public class MeetingController : ControllerBase public class MeetingsController : ControllerBase
{ {
private static readonly string[] Summaries = new[] private static readonly string[] Summaries = new[]
{ {
@ -85,7 +85,7 @@ public class MeetingController : ControllerBase
private readonly ApplicationContext _applicationContext; private readonly ApplicationContext _applicationContext;
public MeetingController(ILogger<UserController> logger, ApplicationContext applicationContext) public MeetingsController(ILogger<UserController> logger, ApplicationContext applicationContext)
{ {
_logger = logger; _logger = logger;
_applicationContext = applicationContext; _applicationContext = applicationContext;
@ -131,7 +131,7 @@ public class MeetingController : ControllerBase
} }
[HttpGet("/list")] [HttpGet("list")]
public IActionResult GetList(int offset, int limit) public IActionResult GetList(int offset, int limit)
{ {
var meetings = _applicationContext.Meetings.Skip(offset).Take(limit); var meetings = _applicationContext.Meetings.Skip(offset).Take(limit);