From 5d9f7190bd118fe4d44594d7a9584de98b527467 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 19 Dec 2021 14:21:33 +0100 Subject: Port to svelte --- bin/corona-regeln | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 bin/corona-regeln (limited to 'bin') diff --git a/bin/corona-regeln b/bin/corona-regeln deleted file mode 100755 index 2a0fbfb..0000000 --- a/bin/corona-regeln +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env node - -const Fastify = require('fastify')({ logger: true }) -const PointOfView = require('point-of-view'); -const Eta = require('eta'); -const { join } = require('path'); - -const CoronaRegeln = require('../lib/corona-regeln.js'); -const Config = require('../config'); - -Fastify.register(PointOfView, { - engine: { - eta: Eta - }, - root: join(__dirname, '../templates'), -}); - -Fastify.get('/', async (request, reply) => { - - return reply.view('/index.eta', { rules: await CoronaRegeln.run(Config) }); -}); - -Fastify.listen(Config.port) - .catch((error) => { - - console.error(error.stack || error.message || error); - process.exit(1); - }) -- cgit