MCPcopy
hub / github.com/eggjs/examples / router.js

File router.js

multipart/app/router.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1module.exports = app => {
2 app.router.get('/', 'home.render');
3
4 app.router.get('/ajax', app.controller.ajax.show);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected