Skip to content

Commit 303626d

Browse files
committed
refactor: move ExceptionManager inside the Server folder
1 parent cf4ddf7 commit 303626d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

adonis-typings/middleware.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
declare module '@ioc:Adonis/Core/Middleware' {
1111
import { IocContract } from '@adonisjs/fold'
12-
import { RouteNode } from '@ioc:Adonis/Core/Route'
1312
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
1413

1514
/**

src/ExceptionManager/index.ts renamed to src/Server/ExceptionManager/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
/// <reference path="../../adonis-typings/index.ts" />
14+
/// <reference path="../../../adonis-typings/index.ts" />
1515

1616
import { IocContract, IocResolverContract } from '@adonisjs/fold'
1717
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
1818
import { ErrorHandler, ResolvedErrorHandler } from '@ioc:Adonis/Core/Server'
1919

20-
import { useReturnValue } from '../helpers'
20+
import { useReturnValue } from '../../helpers'
2121

2222
/**
2323
* Exception manager exposes the API to register custom error handler

src/Server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { PreCompiler } from './PreCompiler'
3131
import { HttpContext } from '../HttpContext'
3232
import { RequestHandler } from './RequestHandler'
3333
import { MiddlewareStore } from '../MiddlewareStore'
34-
import { ExceptionManager } from '../ExceptionManager'
34+
import { ExceptionManager } from './ExceptionManager'
3535

3636
/**
3737
* Server class handles the HTTP requests by using all Adonis micro modules.

0 commit comments

Comments
 (0)