From 6a85255c78a448256fab68cd361983ffc85f2b03 Mon Sep 17 00:00:00 2001 From: transtrike Date: Fri, 11 Dec 2020 14:35:39 +0200 Subject: Renamed Models to Data --- 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 9af73ef..792d8cd 100644 --- a/API/Controllers/ErrorController.cs +++ b/API/Controllers/ErrorController.cs @@ -1,16 +1,19 @@ using System; using System.Net; +using System.Net.Http; using Microsoft.AspNetCore.Mvc; namespace API.Controllers { [ApiController] - [Route("/api/[controller]")] public class ErrorController { [HttpGet] - public HttpStatusCode Error(Exception exception) + [Route("HttpError")] + public HttpStatusCode HttpError(HttpRequestException exception) { + Console.WriteLine("WE HERE, BOIIIIIII"); + return HttpStatusCode.OK; } } -- cgit v1.2.3