feature: execute load()
/unload()
methods found in _pre.ts
files
This commit is contained in:
parent
df8291bfc7
commit
046617bc4f
7 changed files with 116 additions and 62 deletions
|
@ -105,6 +105,11 @@ session, perhaps adding it to the `meta` data that will be passed to the `GET`
|
|||
handler itself. If there is no session, however, it should return an HTTP `Response`
|
||||
object indicating permission is denied or similar.
|
||||
|
||||
#### _pre.ts files
|
||||
|
||||
Any `_pre.ts` files found under the root that export `.load()` and/or `.unload()` methods
|
||||
will be loaded and those functions will be called at server startup/shutdown, respectively.
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] reload typescript if it is modified on disk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue