1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/routes/UserRouter.ts
2016-03-19 09:58:27 +01:00

19 lines
371 B
TypeScript

///<reference path="../../typings/main.d.ts"/>
import {UserMWs} from "../middlewares/UserMWs";
export class UserRouter{
constructor(private app){
this.initLogin();
}
private initLogin() {
this.app.post("/api/login",
UserMWs.inverseAuthenticate,
UserMWs.login,
UserMWs.renderUser
);
};
}