aboutsummaryrefslogtreecommitdiff
path: root/src/server/lib/getURLOfUser.js
blob: f44d1a3fe282f2e3631f13a135108e5523e4696e (plain)
1
2
3
4
5
6
7
8
const leftPad = require('left-pad'); // I imported this just to piss you off ;)

function getURLOfUser(scheduleType, type, index, week) {
  return `http://www.meetingpointmco.nl/Roosters-AL/doc/${scheduleType}roosters/` +
    `${leftPad(week, 2, '0')}/${type}/${type}${leftPad(index + 1, 5, '0')}.htm`;
}

module.exports = getURLOfUser;