Commit 90d11eb5 authored by Fred Chasen's avatar Fred Chasen

Port variable, update paged cli version

parent f4307770
This diff is collapsed.
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
const PORT = 3000;
const PORT = process.env.PORT || 3000;
const Koa = require('koa');
const Router = require('koa-router');
......@@ -19,7 +19,7 @@ const printer = require('./printer');
const app = new Koa();
const router = new Router();
router.post('/printer', printer);
router.post('/', printer);
app.use(cors());
......
......@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
ctx.attachment('out.pdf');
const { url, html, options, headers } = ctx.request.body;
//
// console.debug('URL: ', url);
// console.debug('HTML: ', html);
// console.debug('OPTIONS: ', options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment