UNPKG

regular-redux-undo

Version:

the plugin of regular-redux to archieve undo and redo

18 lines (15 loc) 395 B
const koa = require('koa'); const static = require('koa-static'); const app = new koa(); const path = require('path'); const initMiddleware = () => { let middlewares = []; //静态资源 let staticHandler = static(path.join(process.cwd(), '/public/'), {}); middlewares.push(staticHandler); return middlewares; } initMiddleware().forEach((fn) => { app.use(fn); }) app.listen(8080);