aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-12-19 14:21:33 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-12-19 14:21:33 +0100
commit5d9f7190bd118fe4d44594d7a9584de98b527467 (patch)
treec323938b4626290a227a652380af769d7f4c4518 /bin
parent29f687276d9e9ef01ce70ebd210a01386ca581ae (diff)
Port to svelte
Diffstat (limited to 'bin')
-rwxr-xr-xbin/corona-regeln28
1 files changed, 0 insertions, 28 deletions
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);
- })