1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1× 1× 1× 1× 1× 1× 1× | /** * URL / **/ 'use strict'; const debug = require('debug')('lark.examples.demo.controllers.index'); debug('loading ...'); module.exports = { GET (ctx, next) { debug("GET /"); ctx.body = 'It works!'; return next(); } } debug('loaded!'); |