1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

updateing dependencies

This commit is contained in:
Braun Patrik 2016-04-08 14:48:29 +02:00
parent ab3255536e
commit 53519b7d8a
6 changed files with 6 additions and 18 deletions

View File

@ -33,7 +33,6 @@ export class UserMWs {
return next(new Error(ErrorCodes.USER_CREATION_ERROR));
}
return next();
});

View File

@ -12,6 +12,7 @@ export class UserManager {
}
public static createUser(user,cb:(error: any,result:User) => void){
UserManager.users.push(user);
return cb(null, user);
}

View File

@ -4,7 +4,7 @@ import {UserMWs} from "../middlewares/UserMWs";
import {UserRoles} from "../../common/entities/User";
import {AuthenticationMWs} from "../middlewares/AuthenticationMWs";
import {UserRequestConstrainsMWs} from "../middlewares/UserRequestConstrainsMWs";
import {RenderingMWs} from "../middlewares/RenderingMWs";
import {RenderingMWs} from "../middlewares/RenderingMWs";
export class UserRouter{
constructor(private app){

View File

@ -52,19 +52,7 @@ export class Server {
// for parsing application/json
this.app.use(_bodyParser.json());
this.app.use("/testDir/:img(*\.(jpg|bmp))",(req,res,next)=>{
console.log(req.params);
res.send(req.params);
});
this.app.use("/testDir/:dir(*)",(req,res,next)=>{
console.log(req.params);
res.send(req.params);
});
this.app.use("/testDir/*",(req,res,next)=>{
console.log(req.params);
res.send(req.params);
});
new PublicRouter(this.app);

View File

@ -21,9 +21,9 @@
"url": "https://github.com/bpatrik/PiGallery2/issues"
},
"dependencies": {
"angular2": "^2.0.0-beta.12",
"angular2": "^2.0.0-beta.14",
"body-parser": "^1.15.0",
"core-js": "^2.2.1",
"core-js": "^2.2.2",
"debug": "^2.2.0",
"express": "^4.13.4",
"express-session": "^1.13.0",
@ -37,7 +37,7 @@
"typescript": "^1.8.9",
"typings": "^0.7.9",
"webpack": "^1.12.14",
"zone.js": "0.6.6"
"zone.js": "^0.6.10"
},
"devDependencies": {
"compression-webpack-plugin": "^0.3.0",

View File

@ -5,7 +5,7 @@
"body-parser": "registry:dt/body-parser#0.0.0+20160317120654",
"debug": "github:DefinitelyTyped/DefinitelyTyped/debug/debug.d.ts#0d622d857f97d44ea7dcad2b3edec1f23c48fe9e",
"express": "github:DefinitelyTyped/DefinitelyTyped/express/express.d.ts#0d622d857f97d44ea7dcad2b3edec1f23c48fe9e",
"express-session": "registry:dt/express-session#0.0.0+20160317120654",
"express-session": "registry:dt/express-session#0.0.0+20160331200931",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#d22516f9f089de107d7e7d5938566377370631f6",
"mime": "github:DefinitelyTyped/DefinitelyTyped/mime/mime.d.ts#0d622d857f97d44ea7dcad2b3edec1f23c48fe9e",
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#0d622d857f97d44ea7dcad2b3edec1f23c48fe9e",