mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
feat: add api controllers and routes for browser extension
This commit is contained in:
7
app/api/tokens/exceptions/un_authorized_exception.ts
Normal file
7
app/api/tokens/exceptions/un_authorized_exception.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Exception } from '@adonisjs/core/exceptions';
|
||||
|
||||
export default class UnAuthorizedException extends Exception {
|
||||
static status = 401;
|
||||
message = 'Missing or invalid authorization header';
|
||||
code = 'UNAUTHORIZED';
|
||||
}
|
||||
Reference in New Issue
Block a user