Website Summary Files Commits Branches @commit @diff @stats
path: root / API / Controllers / ErrorController.cs
diff options
context:
space:
mode:
Commit6a85255c78a448256fab68cd361983ffc85f2b03 (patch)
Author
 transtrike <transtrike@gmail.com>
2020-12-11 14:35:39 +0200
Committer
 transtrike <transtrike@gmail.com>
2020-12-11 14:35:39 +0200
Filese4b4c3071a59fecf120d8ebddb7d366bdc653628 /API/Controllers/ErrorController.cs
DevHive-6a85255c78a448256fab68cd361983ffc85f2b03.tar
DevHive-6a85255c78a448256fab68cd361983ffc85f2b03.tar.gz
DevHive-6a85255c78a448256fab68cd361983ffc85f2b03.zip
Parenteb7c817329bcdd9eb520c6760bacf84d6f45f20d (diff)
Renamed Models to Data
1 files changed, 5 insertions, 2 deletions
-rw-r--r--API/Controllers/ErrorController.cs7
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;
}
}