2018-12-24 14:23:22 +01:00
|
|
|
require('isomorphic-fetch');
|
|
|
|
|
|
|
|
module.exports = (router) => {
|
|
|
|
router.get('/35c3/fahrplan', async (ctx) => {
|
2019-12-26 22:27:59 +01:00
|
|
|
const res = await fetch('https://fahrplan.events.ccc.de/congress/2019/Fahrplan/schedule.json');
|
2018-12-24 14:23:22 +01:00
|
|
|
ctx.assert((res.status === 200), res.status);
|
|
|
|
const body = await res.json();
|
|
|
|
ctx.body = body;
|
|
|
|
});
|
|
|
|
};
|