working base entities creation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
454c507b2f
commit
4fd77a1f17
22 changed files with 260 additions and 356 deletions
|
@ -45,27 +45,27 @@ namespace Sledgemapper.Api.Controllers
|
|||
}
|
||||
|
||||
[HttpPost("wall")]
|
||||
public async Task Post(string campaign, string mapName, [FromBody] Wall wall)
|
||||
public async Task Post(Guid campaign, Guid mapName, [FromBody] Wall wall)
|
||||
{
|
||||
await _mediator.Send(new NewWallCommand(mapName, wall, UserId));
|
||||
await _mediator.Send(new NewWallCommand(campaign, mapName, wall, UserId));
|
||||
}
|
||||
|
||||
[HttpPost("note")]
|
||||
public async Task Post(string campaign, string mapName, [FromBody] Note note)
|
||||
public async Task Post(Guid campaign, Guid mapName, [FromBody] Note note)
|
||||
{
|
||||
await _mediator.Send(new NewNoteCommand(mapName, note, UserId));
|
||||
await _mediator.Send(new NewNoteCommand(campaign, mapName, note, UserId));
|
||||
}
|
||||
|
||||
[HttpPost("room")]
|
||||
public async Task Post(string campaign, string mapName, [FromBody] Room room)
|
||||
public async Task Post(Guid campaign, Guid mapName, [FromBody] Room room)
|
||||
{
|
||||
await _mediator.Send(new NewRoomCommand(mapName, room, UserId));
|
||||
await _mediator.Send(new NewRoomCommand(campaign, mapName, room, UserId));
|
||||
}
|
||||
|
||||
[HttpPost("line")]
|
||||
public async Task Post(string campaign, string mapName, [FromBody] Line line)
|
||||
public async Task Post(Guid campaign, Guid mapName, [FromBody] Line line)
|
||||
{
|
||||
await _mediator.Send(new NewLineCommand(mapName, line, UserId));
|
||||
await _mediator.Send(new NewLineCommand(campaign, mapName, line, UserId));
|
||||
}
|
||||
|
||||
[HttpDelete("overlay")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue