Made some changes to the mock-api
This commit is contained in:
@@ -61,7 +61,7 @@ router.render = (req, res) => {
|
||||
let data = res.locals.data;
|
||||
const employeeRegex = /(?:\/users\/)(.*)/;
|
||||
const isEmployeePath = employeeRegex.exec(pathname);
|
||||
const deltagareRegex = /(?:\/deltagare\/)(?:\d\/)(contact|driverlicense|educationlevels\/highest|educations|translator|work\/disabilities|work\/languages|work\/experiences)/g;
|
||||
const deltagareRegex = /(?:\/deltagare\/)(?:\d*\/)(contact|driverlicense|educationlevels\/highest|educations|translator|work\/disabilities|work\/languages|work\/experiences)/g;
|
||||
const isDeltagarePath = deltagareRegex.exec(pathname);
|
||||
const avropRegex = /(?:\/avrop\/(?:tjanster|utforandeverksamheter|kommuner|\d))|(?:\/deltagare\/\d\/(avrop))/g;
|
||||
const isAvropPath = avropRegex.exec(pathname);
|
||||
|
||||
Reference in New Issue
Block a user