Browse Source

Add empty root endpoint for uptime check

master
KaKi87 2 months ago
parent
commit
685a53385b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      index.js

+ 2
- 0
index.js View File

@ -2,6 +2,8 @@ const
fastify = require('fastify')(),
cestlagreve = require('cestlagreve-strikes');
fastify.get('/', async (request, reply) => reply.code(204).send());
fastify.get('/ics', async (req, res) => res.send(await cestlagreve.getIcal()));
fastify.get('/embed', (req, res) => res.redirect(301, 'https://openwebcalendar.herokuapp.com/calendar.html?url=https://cestlagreve.api.kaki87.net/ics'));


Loading…
Cancel
Save