From 736cc7ff712ef28bf3d1802e99e5f4fbb13383a4 Mon Sep 17 00:00:00 2001 From: FranchescoSoto Date: Mon, 20 Nov 2023 23:34:36 -0500 Subject: [PATCH] fix: art event management controller --- .../ArtEventManagement/Interfaces/REST/ArtEventsController.cs | 2 +- .../Interfaces/REST/ParticipantsController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ArtEventsController.cs b/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ArtEventsController.cs index 095e79f..f3df852 100644 --- a/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ArtEventsController.cs +++ b/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ArtEventsController.cs @@ -72,7 +72,7 @@ public async Task getByArtist(int id) { IEnumerable events= _artEventQueryService.getArtEventByArtistId(id); return Ok(events); } - [HttpPost("art-events/{id}/participant")] + [HttpPost("art-events/participant")] public async Task createParticipant([FromBody] RegisterParticipantToArtEventCommand registerParticipantToArtEvent) { string response= await _artEventCommandService.registerParticipantToArtEvent(registerParticipantToArtEvent); return Ok(response); diff --git a/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ParticipantsController.cs b/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ParticipantsController.cs index 9030667..794a3c9 100644 --- a/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ParticipantsController.cs +++ b/PERUSTARS/PERUSTARS/ArtEventManagement/Interfaces/REST/ParticipantsController.cs @@ -24,7 +24,7 @@ public ParticipantsController(IMapper mapper, IParticipantQueryService participa _participantCommandService=participantCommandService; } - [HttpGet] + [HttpGet("participants")] public async Task getParticipants() { IEnumerable participants = _participantQueryService.GetParticipants();