Files: b3e2feb620b8617e72d7d07a600aea220c8b0992 / app / router.js
357 bytesRaw
1 | const nest = require('depnest') |
2 | |
3 | module.exports = { |
4 | router: require('inu-router').modules.router, |
5 | routeNotFound: { |
6 | gives: nest('inu.route'), |
7 | needs: nest('html.hx', 'first'), |
8 | create: (api) => nest('inu.route', () => [ |
9 | ['/404', (model) => { |
10 | return api.html.hx` |
11 | <div>page not found</div> |
12 | ` |
13 | }] |
14 | ]) |
15 | } |
16 | } |
17 |
Built with git-ssb-web