nodejs express - case sensitive URL's

From express.js api docs

case sensitive routing - Enable case sensitivity, disabled by default, treating "/Foo" and "/foo" as the same

You can change the defaults like so:

app.set('case sensitive routing', true);

app.set('case sensitive routing', true);

works only if u don't use in other files

const express = require('express');
const router = express.Router();

if in our case same as above, just do this (in each file):

const express = require('express');
const router = express.Router({caseSensitive: true});