feature: execute load()/unload() methods found in _pre.ts files

This commit is contained in:
Andy Burke 2025-08-11 17:12:55 -07:00
parent df8291bfc7
commit 046617bc4f
7 changed files with 116 additions and 62 deletions

View file

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