You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
448 B

import {FakeCanonical} from './FakeCanonical.ts'
import Middleware from '../http/Middleware.ts'
import {Unit} from '../lifecycle/decorators.ts'
import StaticServer from '../http/system_middleware/StaticServer.ts'
@Unit()
export default class DatonMiddleware extends FakeCanonical<Middleware> {
protected canonical_item = 'daton'
public async up() {
await super.up()
this._items['static'] = this.make(StaticServer)
}
}