1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-03 05:02:34 +02:00

Reworked code.

This commit is contained in:
Chung Leong
2019-04-19 00:06:10 +02:00
parent da30bc22a6
commit c66323e17d
58 changed files with 454 additions and 348 deletions

View File

@@ -26,6 +26,7 @@ const CACHE_CONTROL = 'public,max-age=0,s-maxage=604800';
// start up Express
let app = Express();
let root = PageRenderer.basePath;
console.log('root = ' + root)
app.set('json spaces', 2);
app.use(Compression())
app.use(SpiderDetector.middleware());