From 9a669ea5fbc8c3f1fec226760a6df7d0ad55e115 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 26 Aug 2019 01:36:23 +0100 Subject: [PATCH] some route to bug signal --- src/Yavsc/ApiControllers/Survey/BugApiController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Yavsc/ApiControllers/Survey/BugApiController.cs b/src/Yavsc/ApiControllers/Survey/BugApiController.cs index 789f3066..868e89cf 100644 --- a/src/Yavsc/ApiControllers/Survey/BugApiController.cs +++ b/src/Yavsc/ApiControllers/Survey/BugApiController.cs @@ -12,7 +12,7 @@ using Yavsc.Models.IT.Fixing; namespace Yavsc.ApiControllers { [Produces("application/json")] - [Route("api/bug")] + [Route("~/api/bug")] public class BugApiController : Controller { private ApplicationDbContext _context; @@ -24,7 +24,9 @@ namespace Yavsc.ApiControllers _context = context; } - [HttpPost("signal")] + [HttpPost] + [Route("~/api/bugsignal")] + [Produces("application/json")] IActionResult Signal(BugReport report) { // TODO check ApiKey, check duplicate, and save report