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

19 lines
370 B
TypeScript
Raw Normal View History

2016-03-19 04:36:58 +08:00
///<reference path="../../typings/main.d.ts"/>
import {UserMWs} from "../middlewares/UserMWs";
export class UserRouter{
constructor(private app){
this.initLogin();
}
private initLogin() {
this.app.get("/api/login",
UserMWs.inverseAuthenticate,
UserMWs.login,
UserMWs.renderUser
);
};
}