import koa from 'koa';

const host = process.env.HOST ?? 'localhost';
const port = process.env.PORT ? Number(process.env.PORT) : <%= port %>;

const app = new koa();

app.use(async ctx =>{
    ctx.body = { 'message': 'Hello API'};
});

app.listen(port, host, () => {
    console.log(`[ ready ] http://${host}:${port}`);
});
