aboutsummaryrefslogtreecommitdiff
path: root/API/Controllers/ErrorController.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-11 14:35:39 +0200
committertranstrike <transtrike@gmail.com>2020-12-11 14:35:39 +0200
commit6a85255c78a448256fab68cd361983ffc85f2b03 (patch)
treee4b4c3071a59fecf120d8ebddb7d366bdc653628 /API/Controllers/ErrorController.cs
parenteb7c817329bcdd9eb520c6760bacf84d6f45f20d (diff)
downloadDevHive-6a85255c78a448256fab68cd361983ffc85f2b03.tar
DevHive-6a85255c78a448256fab68cd361983ffc85f2b03.tar.gz
DevHive-6a85255c78a448256fab68cd361983ffc85f2b03.zip
Renamed Models to Data
Diffstat (limited to 'API/Controllers/ErrorController.cs')
-rw-r--r--API/Controllers/ErrorController.cs7
1 files changed, 5 insertions, 2 deletions
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;
}
}