1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-18 00:19:25 +02:00

updating packages and refactoring code

This commit is contained in:
Braun Patrik
2016-12-26 23:36:38 +01:00
parent 3cd9ef7b1a
commit eaf678bedd
72 changed files with 868 additions and 955 deletions

View File

@@ -1,5 +1,3 @@
///<reference path="../../typings/index.d.ts"/>
import * as _express from "express";
import {NextFunction, Request, Response} from "express";
import * as _path from "path";
@@ -24,8 +22,9 @@ export class PublicRouter {
this.app.use(_express.static(_path.resolve(__dirname, './../../frontend')));
this.app.use('/node_modules', _express.static(_path.resolve(__dirname, './../../node_modules')));
this.app.use('/common', _express.static(_path.resolve(__dirname, './../../common')));
var renderIndex = (req:Request, res:Response) => {
const renderIndex = (req: Request, res: Response) => {
res.render(_path.resolve(__dirname, './../../frontend/index.ejs'), res.tpl);
};