securityos/node_modules/next/dist/shared/lib/page-path/denormalize-app-path.js

19 lines
433 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "denormalizeAppPagePath", {
enumerable: true,
get: function() {
return denormalizeAppPagePath;
}
});
function denormalizeAppPagePath(page) {
// `/` is normalized to `/index`
if (page === "/index") {
return "/";
}
return page;
}
//# sourceMappingURL=denormalize-app-path.js.map