1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-13 23:56:56 +02:00

adding client side config

Implementing search disable
This commit is contained in:
Braun Patrik
2016-05-10 21:33:58 +02:00
parent 4caa499faf
commit f53c537a9d
12 changed files with 152 additions and 53 deletions

View File

@@ -4,6 +4,7 @@ import * as _express from "express";
import {NextFunction, Request, Response} from "express";
import * as _path from "path";
import {Utils} from "../../common/Utils";
import {Config} from "../config/Config";
export class PublicRouter {
constructor(private app) {
@@ -16,6 +17,7 @@ export class PublicRouter {
delete user.password;
res.tpl.user = user;
}
res.tpl.clientConfig = Config.Client;
return next();
});