Implemented api/check endpoint. Added api error middleware
This commit is contained in:
11
Moonlight.ApiServer/Exceptions/MissingPermissionException.cs
Normal file
11
Moonlight.ApiServer/Exceptions/MissingPermissionException.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Moonlight.ApiServer.Exceptions;
|
||||
|
||||
public class MissingPermissionException : Exception
|
||||
{
|
||||
public string Permission { get; set; }
|
||||
|
||||
public MissingPermissionException(string permission)
|
||||
{
|
||||
Permission = permission;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user