From 0bd15454f29e30438b28ca0e27887de6b765fb11 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 10 Dec 2020 21:23:04 +0200 Subject: Added temporary functionality to ErrorController --- API/Controllers/ErrorController.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'API/Controllers/ErrorController.cs') diff --git a/API/Controllers/ErrorController.cs b/API/Controllers/ErrorController.cs index 6757804..62daf40 100644 --- a/API/Controllers/ErrorController.cs +++ b/API/Controllers/ErrorController.cs @@ -1,13 +1,16 @@ using System; +using System.Net; +using Microsoft.AspNetCore.Mvc; namespace API.Controllers { [ApiController] + [Route("/api/[controller]")] public class ErrorController { public HttpStatusCode Error(Exception exception) { - + return HttpStatusCode.OK; } } -} \ No newline at end of file +} -- cgit v1.2.3