mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
19 lines
370 B
TypeScript
19 lines
370 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.get("/api/login",
|
||
|
UserMWs.inverseAuthenticate,
|
||
|
UserMWs.login,
|
||
|
UserMWs.renderUser
|
||
|
);
|
||
|
};
|
||
|
|
||
|
}
|