small campaign progress
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9f9be13215
commit
96657989c8
18 changed files with 439 additions and 89 deletions
|
@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Mvc;
|
|||
using Sledgemapper.Api.Commands;
|
||||
using Sledgemapper.Api.Notifications;
|
||||
using Sledgemapper.Shared.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -28,6 +29,14 @@ namespace Sledgemapper.Api.Controllers
|
|||
return result;
|
||||
}
|
||||
|
||||
//[HttpPost]
|
||||
//[Route("{campaignName}")]
|
||||
//public async Task<Guid> Get(string campaignName)
|
||||
//{
|
||||
// var result = await _mediator.Send(new GetCampaignCommand(campaignName, UserId.ToString()));
|
||||
// return result;
|
||||
//}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<List<Campaign>> Get()
|
||||
{
|
||||
|
@ -50,5 +59,7 @@ namespace Sledgemapper.Api.Controllers
|
|||
var result = await _mediator.Send(new GetCampaignPlayersCommand(campaignName, UserId.ToString()));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue