diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-10 16:00:50 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-10 16:00:53 +0100 |
commit | a9a607b9b26c5d63e773deb639f2abf9d4847f8c (patch) | |
tree | 6ae294516596ce700ade04dbb6b7f6783a1190db /README.md | |
parent | c5afd1a61b06b3d5bd7287d1596b05d4c18ac138 (diff) | |
download | alps-a9a607b9b26c5d63e773deb639f2abf9d4847f8c.tar.gz alps-a9a607b9b26c5d63e773deb639f2abf9d4847f8c.zip |
Allow plugins to add new routes
References: https://todo.sr.ht/~sircmpwn/koushin/6
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -23,6 +23,8 @@ API: * `koushin.on_render(name, f)`: prior to rendering the template `name`, call `f` with the template data * `koushin.set_filter(name, f)`: set a template function +* `koushin.set_route(method, path, f)`: register a new HTTP route, `f` will be + called with the HTTP context ## License |