migrate from perforce

This commit is contained in:
2026-04-19 01:16:27 +02:00
commit d161a20915
1810 changed files with 1156171 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// Single Page Apps - redirect to /#/ except when a file extension is given
var path = require('path');
module.exports = function(req, res, next) {
if (req.method !== "GET" && req.method !== "HEAD")
next();
if (req.url !== '/' && path.extname(req.url) === '') {
var route = req.url;
req.url = '/';
res.statusCode = 302;
res.setHeader('Location', req.url + '#' + route);
res.end();
}
else next();
}