Skip to content

Commit

Permalink
Put endpoints behind /api
Browse files Browse the repository at this point in the history
  • Loading branch information
YouriRombouts committed May 7, 2023
1 parent 6678f7a commit 572e85e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace ConsoleProjectManagement.WebAPI.Controllers;

[ApiController]
[Route("authentication"), Authorize]
[Route("api/authentication"), Authorize]
public class AuthenticationController : ControllerBase
{
private readonly IAuthenticationService _authManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace GameDevPortal.WebAPI.Controllers
{
[ApiController]
[Route("categories")]
[Route("api/categories")]
public class CategoryController : ControllerBase
{
private const string _getName = $"{nameof(Get)}{nameof(Category)}";
Expand Down
2 changes: 1 addition & 1 deletion backend/GameDevPortal.WebAPI/Controllers/FaqController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace GameDevPortal.WebAPI.Controllers
{
[ApiController]
[Route("faq")]
[Route("api/faq")]
public class FaqController : ControllerBase
{
private const string _getName = $"{nameof(Get)}{nameof(Faq)}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace GameDevPortal.WebAPI.Controllers
{
[ApiController]
[Route("progress-reports")]
[Route("api/progress-reports")]
public class ProgressReportController : ControllerBase
{
private const string _getName = $"{nameof(Get)}{nameof(ProgressReport)}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace GameDevPortal.WebAPI.Controllers
{
[ApiController]
[Route("projects")]
[Route("api/projects")]
public class ProjectController : ControllerBase
{
private const string _getName = $"{nameof(Get)}{nameof(Project)}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace ConsoleProjectManagement.WebAPI.Controllers;

[ApiController]
[Route("users"), Authorize]
[Route("api/users"), Authorize]
public class UsersController : ControllerBase
{
private readonly IMapper _mapper;
Expand Down

0 comments on commit 572e85e

Please sign in to comment.