From d0a68ee0190aa7e65ac966998b006e3520d0b79e Mon Sep 17 00:00:00 2001 From: Vitalick Kovalenko Date: Sat, 23 Dec 2023 00:47:28 +0300 Subject: [PATCH] change routes --- CyberBoom/Controllers/UserController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CyberBoom/Controllers/UserController.cs b/CyberBoom/Controllers/UserController.cs index ebce7c1..6a812f3 100644 --- a/CyberBoom/Controllers/UserController.cs +++ b/CyberBoom/Controllers/UserController.cs @@ -10,7 +10,7 @@ using Microsoft.IdentityModel.Tokens; namespace CyberBoom.Controllers; [ApiController] -[Route("[controller]")] +[Route("/api/[controller]")] public class UserController : ControllerBase { private static readonly string[] Summaries = new[] @@ -73,8 +73,8 @@ public class UserController : ControllerBase [ApiController] -[Route("[controller]")] -public class MeetingController : ControllerBase +[Route("/api/[controller]")] +public class MeetingsController : ControllerBase { private static readonly string[] Summaries = new[] { @@ -85,7 +85,7 @@ public class MeetingController : ControllerBase private readonly ApplicationContext _applicationContext; - public MeetingController(ILogger logger, ApplicationContext applicationContext) + public MeetingsController(ILogger logger, ApplicationContext applicationContext) { _logger = logger; _applicationContext = applicationContext; @@ -131,7 +131,7 @@ public class MeetingController : ControllerBase } - [HttpGet("/list")] + [HttpGet("list")] public IActionResult GetList(int offset, int limit) { var meetings = _applicationContext.Meetings.Skip(offset).Take(limit);