aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/ErrorController.cs
blob: 19fbb21132f833f31ab2802668241914fe4023a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Net.Http;
using Microsoft.AspNetCore.Mvc;

namespace DevHive.Web.Controllers
{
	[ApiController]
	[Route("/api/[controller]")]
	public class ErrorController
	{
		[HttpGet]
		public IActionResult Error(Exception exception)
		{
			return new BadRequestObjectResult(exception);
		}
	}
}