aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/ErrorController.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-14 23:29:14 +0200
committertranstrike <transtrike@gmail.com>2020-12-14 23:29:14 +0200
commitdee2e37a4a8759108390c664e06bf147b8385cbf (patch)
treebd65fe5649731a55aa6f1d8b48d53d89032fb8be /src/DevHive.Web/Controllers/ErrorController.cs
parent1ccdefdac025b1b986ad2bd0bc3eda7505d6e7c3 (diff)
downloadDevHive-dee2e37a4a8759108390c664e06bf147b8385cbf.tar
DevHive-dee2e37a4a8759108390c664e06bf147b8385cbf.tar.gz
DevHive-dee2e37a4a8759108390c664e06bf147b8385cbf.zip
Stabalized project for compilation. Next step after init architecture
Diffstat (limited to 'src/DevHive.Web/Controllers/ErrorController.cs')
-rw-r--r--src/DevHive.Web/Controllers/ErrorController.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/DevHive.Web/Controllers/ErrorController.cs b/src/DevHive.Web/Controllers/ErrorController.cs
new file mode 100644
index 0000000..560b0da
--- /dev/null
+++ b/src/DevHive.Web/Controllers/ErrorController.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Net;
+using System.Net.Http;
+using Microsoft.AspNetCore.Mvc;
+
+namespace DevHive.Web.Controllers
+{
+ [ApiController]
+ [Route("/api/[controller]")]
+ public class ErrorController
+ {
+ [HttpGet]
+ public HttpStatusCode HttpError(HttpRequestException exception)
+ {
+ Console.WriteLine("WE HERE, BOIIIIIII");
+
+ return HttpStatusCode.OK;
+ }
+ }
+}