Skip to content

Commit

Permalink
feat: add getMensaplanHTML to export
Browse files Browse the repository at this point in the history
  • Loading branch information
philippdormann committed Apr 12, 2023
1 parent 422e529 commit ffbcb02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { getMensaplanHTML } = require('./fetcher');
const { getMensaPlanHTML } = require('./fetcher');
const { parser } = require('./parser');
module.exports = async function start_it_up(req, res) {
try {
const html = await getMensaplanHTML({ p: req.query.p, e: req.query.e });
const html = await getMensaPlanHTML({ p: req.query.p, e: req.query.e });
const parsed = await parser(html);
let payload = parsed.json;
if (req.query.details === 'true') {
Expand Down
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const { fetcher } = require('./api/fetcher');
const { fetcher, getMensaPlanHTML } = require('./api/fetcher');
const { parser } = require('./api/parser');
const institutions = require('./institutions.json');
//
exports.getMensaPlanHTML = getMensaPlanHTML;
exports.fetcher = fetcher;
exports.parser = parser;
exports.institutions = institutions;

0 comments on commit ffbcb02

Please sign in to comment.