@vercaemer/koa-ssr-router

0.1.0 • Public • Published

koa fs router

features

  • request routing based on file system structure
  • templating with your favourite engine
  • server side props with custom handler
  • api endpoints
  • parameterized routes

usage

Create your routes folder and mount the middleware. Use [name] syntax in folders or files to specify parameters. Use {{params.name}} to use them in your templates.

You can use {{state}} to access the koa state object.

Package Sidebar

Install

npm i @vercaemer/koa-ssr-router

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

8.5 kB

Total Files

11

Last publish

Collaborators

  • eddd.ddde