13 lines
288 B
TypeScript

import { CGGService } from 'cgg/Application.ts';
import { Router } from 'oak';
const app = new CGGService({ prefix: '/rules' });
app.route(new Router()
.get('/', ctx => ctx.response.body = 'rules service')
);
app.start();
console.log('rules service running on ' + Deno.args.at(0));