Skip to content

Commit 783692d

Browse files
correct api route
1 parent 498d6ae commit 783692d

12 files changed

+12
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

backend/Bugget/Controllers/AttachmentsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Bugget.Controllers;
1010

1111
[Auth]
12-
[Route("bugget/public/v1/reports/{reportId}/bug/{bugId}/attachments")]
12+
[Route("/v1/reports/{reportId}/bug/{bugId}/attachments")]
1313
public sealed class AttachmentsController(AttachmentService attachmentService) : ApiController
1414
{
1515
[HttpPost]

backend/Bugget/Controllers/AuthController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Bugget.Controllers;
1010

1111
[Auth]
12-
[Route("bugget/public/v1/auth")]
12+
[Route("/v1/auth")]
1313
public sealed class AuthController(EmployeesDataAccess employeesDataAccess) : ApiController
1414
{
1515
/// <summary>

backend/Bugget/Controllers/BugsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Bugget.Controllers;
1414
/// Api для работы с багами
1515
/// </summary>
1616
[Auth]
17-
[Route("bugget/public/v1/reports/{reportId}/bugs")]
17+
[Route("/v1/reports/{reportId}/bugs")]
1818
public sealed class BugsController(BugsService bugsService,
1919
IHubContext<ReportPageHub> hubContext,
2020
EmployeesService employeesService) : ApiController

backend/Bugget/Controllers/BugsV2Controller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Bugget.Controllers;
1111
/// Api для работы с багами
1212
/// </summary>
1313
[Auth]
14-
[Route("bugget/public/v2/reports/{reportId}/bugs")]
14+
[Route("/v2/reports/{reportId}/bugs")]
1515
public sealed class BugsV2Controller(BugsService bugsService) : ApiController
1616
{
1717
/// <summary>

backend/Bugget/Controllers/CommentsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Bugget.Controllers;
1313
/// Api для работы с комментами
1414
/// </summary>
1515
[Auth]
16-
[Route("bugget/public/v1/reports/{reportId}/bugs/{bugId}/comments")]
16+
[Route("/v1/reports/{reportId}/bugs/{bugId}/comments")]
1717
public sealed class CommentsController(
1818
CommentsService commentsService,
1919
IHubContext<ReportPageHub> hubContext,

backend/Bugget/Controllers/EmployeesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Bugget.Controllers;
1111
/// Api для работы с сотрудниками
1212
/// </summary>
1313
[Auth]
14-
[Route("bugget/public/v1/employees")]
14+
[Route("/v1/employees")]
1515
public sealed class EmployeesController(EmployeesService service) : ApiController
1616
{
1717
/// <summary>

backend/Bugget/Controllers/ReportsObsoleteController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Bugget.Controllers;
1717
/// Api для работы с репортами
1818
/// </summary>
1919
[Auth]
20-
[Route("bugget/public/v1/reports")]
20+
[Route("/v1/reports")]
2121
[Obsolete("Используйте ReportsV2Controller")]
2222
public sealed class ReportsObsoleteController(
2323
ReportsService reportsService,

backend/Bugget/Controllers/ReportsV2Controller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Bugget.Controllers;
1111
/// v2 Api для работы с репортами
1212
/// </summary>
1313
[Auth]
14-
[Route("bugget/public/v2/reports")]
14+
[Route("/v2/reports")]
1515
public sealed class ReportsV2Controller(
1616
ReportsService reportsService) : ApiController
1717
{

backend/Bugget/Controllers/TeamsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Bugget.Controllers;
1212
/// Api для работы с командами
1313
/// </summary>
1414
[Auth]
15-
[Route("bugget/public/v1/teams")]
15+
[Route("/v1/teams")]
1616
public sealed class TeamsController(EmployeesService service) : ApiController
1717
{
1818
/// <summary>

0 commit comments

Comments
 (0)