mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 09:17:47 +00:00
create MatchScore update API method
This commit is contained in:
@@ -27,7 +27,7 @@ namespace LiveGameFeed.Controllers
|
||||
{
|
||||
_matchRepository = matchRepository;
|
||||
_feedRepository = feedRepository;
|
||||
timerService.TimerElapsed += _feed_Generate;
|
||||
// timerService.TimerElapsed += _feed_Generate;
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
|
||||
@@ -43,9 +43,10 @@ namespace LiveGameFeed.Controllers
|
||||
}
|
||||
|
||||
// POST api/values
|
||||
[HttpPost]
|
||||
public void Post([FromBody]string value)
|
||||
[HttpPost("update", Name = "UpdateScore")]
|
||||
public void UpdateScore([FromBody]MatchScore matchScore)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// PUT api/values/5
|
||||
|
||||
Reference in New Issue
Block a user