Browse Source
Merge pull request #227 from nparquet/fix-mainpages
Fixed customization of main pages
master
ansuz
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
server.js
|
|
|
@ -117,6 +117,7 @@ Fs.exists(__dirname + "/customize", function (e) { |
|
|
|
|
|
|
|
var mainPages = config.mainPages || ['index', 'privacy', 'terms', 'about', 'contact']; |
|
|
|
var mainPagePattern = new RegExp('^\/(' + mainPages.join('|') + ').html$'); |
|
|
|
app.get(mainPagePattern, Express.static(__dirname + '/customize')); |
|
|
|
app.get(mainPagePattern, Express.static(__dirname + '/customize.dist')); |
|
|
|
|
|
|
|
app.use("/blob", Express.static(Path.join(__dirname, (config.blobPath || './blob')), { |
|
|
|
|