You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-17 01:32:29 +02:00
implementing thumbnail sizes
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
import * as _express from "express";
|
||||
import * as _session from "express-session";
|
||||
import * as _bodyParser from "body-parser";
|
||||
import * as _compress from "compression";
|
||||
import * as _debug from "debug";
|
||||
import * as _http from "http";
|
||||
import {PublicRouter} from "./routes/PublicRouter";
|
||||
@ -29,6 +28,7 @@ export class Server {
|
||||
this.debug = _debug("PiGallery2:server");
|
||||
this.app = _express();
|
||||
|
||||
|
||||
this.app.set('view engine', 'ejs');
|
||||
|
||||
if (process.env.DEBUG) {
|
||||
@ -36,9 +36,7 @@ export class Server {
|
||||
this.app.use(_morgan('dev'));
|
||||
}
|
||||
|
||||
//enable gzip
|
||||
this.app.use(_compress());
|
||||
|
||||
|
||||
/**
|
||||
* Session above all
|
||||
*/
|
||||
|
Reference in New Issue
Block a user