dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#4399 - Fix JPA and Serialization for new JPA versions (new eclipse envs)
Joaquín Reñé
2025-05-27
89b1c533d1b48b8b339b9c74a59c2ce73e6431af
[common/securis.git]
/
securis
/
src
/
main
/
webapp
/
bs-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var gz_urls = /\.gz$/
middleware = function(req, res, next) {
if ('GET' != req.method && 'HEAD' != req.method) {
return next();
}
if (gz_urls.test(req.url)) {
console.log('GZIP detected for url: ' + req.url);
res.setHeader('Content-Encoding', 'gzip');
}
return next();
}
console.log(middleware);
module.exports = function(bs) {
return {
"server": {
"baseDir": "",
"routes": {
"/node_modules": "node_modules",
"/assets": "assets"
}
},
middleware: [
middleware
]
}
}