Http Kernel!

This commit is contained in:
garrettmills
2020-07-22 09:38:17 -05:00
parent 60bb9afa29
commit b9f2f844f3
25 changed files with 402 additions and 43 deletions

View File

@@ -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'

View File

@@ -1,4 +1,9 @@
export default {
port: 8080,
use_ssl: false,
powered_by: {
enable: true,
text: 'Daton',
},
}

View File

@@ -0,0 +1,5 @@
import Middleware from '../../../lib/src/http/Middleware.ts'
export default class TestMiddleware extends Middleware {
}

View File

@@ -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,
]