some route to bug signal
This commit is contained in:
parent
77128e1a7e
commit
44b534fb9b
1 changed files with 4 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ using Yavsc.Models.IT.Fixing;
|
||||||
namespace Yavsc.ApiControllers
|
namespace Yavsc.ApiControllers
|
||||||
{
|
{
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[Route("api/bug")]
|
[Route("~/api/bug")]
|
||||||
public class BugApiController : Controller
|
public class BugApiController : Controller
|
||||||
{
|
{
|
||||||
private ApplicationDbContext _context;
|
private ApplicationDbContext _context;
|
||||||
|
|
@ -24,7 +24,9 @@ namespace Yavsc.ApiControllers
|
||||||
_context = context;
|
_context = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("signal")]
|
[HttpPost]
|
||||||
|
[Route("~/api/bugsignal")]
|
||||||
|
[Produces("application/json")]
|
||||||
IActionResult Signal(BugReport report)
|
IActionResult Signal(BugReport report)
|
||||||
{
|
{
|
||||||
// TODO check ApiKey, check duplicate, and save report
|
// TODO check ApiKey, check duplicate, and save report
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue