Http Kernel!
This commit is contained in:
@@ -2,3 +2,5 @@ export { default as ConfigUnit } from '../../lib/src/unit/Config.ts'
|
||||
export { DatabaseUnit } from '../../orm/src/DatabaseUnit.ts'
|
||||
export { default as ControllerUnit } from '../../lib/src/unit/Controllers.ts'
|
||||
export { default as MiddlewareUnit } from '../../lib/src/unit/Middlewares.ts'
|
||||
export { default as RoutesUnit } from '../../lib/src/unit/Routes.ts'
|
||||
export { default as HttpKernelUnit } from '../../lib/src/unit/HttpKernel.ts'
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
export default {
|
||||
port: 8080,
|
||||
use_ssl: false,
|
||||
|
||||
powered_by: {
|
||||
enable: true,
|
||||
text: 'Daton',
|
||||
},
|
||||
}
|
||||
|
||||
5
app/http/middleware/Test.middleware.ts
Normal file
5
app/http/middleware/Test.middleware.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import Middleware from '../../../lib/src/http/Middleware.ts'
|
||||
|
||||
export default class TestMiddleware extends Middleware {
|
||||
|
||||
}
|
||||
11
app/units.ts
11
app/units.ts
@@ -1,8 +1,17 @@
|
||||
import {ConfigUnit, DatabaseUnit, ControllerUnit, MiddlewareUnit} from './bundle/daton_units.ts'
|
||||
import {
|
||||
ConfigUnit,
|
||||
DatabaseUnit,
|
||||
ControllerUnit,
|
||||
MiddlewareUnit,
|
||||
RoutesUnit,
|
||||
HttpKernelUnit
|
||||
} from './bundle/daton_units.ts'
|
||||
|
||||
export default [
|
||||
ConfigUnit,
|
||||
DatabaseUnit,
|
||||
HttpKernelUnit,
|
||||
MiddlewareUnit,
|
||||
ControllerUnit,
|
||||
RoutesUnit,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user