Website Summary Files Commits Branches @commit @diff @stats
path: root / API / Controllers / ErrorController.cs
diff options
context:
space:
mode:
Commit0bd15454f29e30438b28ca0e27887de6b765fb11 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-12-10 21:23:04 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-12-10 21:23:04 +0200
Files0b3aca4c8db64e1df92f6b642ca32b2e813cda78 /API/Controllers/ErrorController.cs
DevHive-0bd15454f29e30438b28ca0e27887de6b765fb11.tar
DevHive-0bd15454f29e30438b28ca0e27887de6b765fb11.tar.gz
DevHive-0bd15454f29e30438b28ca0e27887de6b765fb11.zip
Parentf8dd04620150c2806169c881c8537dc623a0f463 (diff)
Added temporary functionality to ErrorController
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 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
+}