1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/routes/GalleryRouter.ts
2016-03-19 17:31:42 +01:00

54 lines
1.2 KiB
TypeScript

///<reference path="../../typings/main.d.ts"/>
import {AuthenticationMWs} from "../middlewares/AuthenticationMWs";
export class GalleryRouter{
constructor(private app){
this.addDirectoryList();
this.addGetImageThumbnail();
this.addGetImage();
this.addSearch();
this.addAutoComplete();
}
private addDirectoryList() {
this.app.get("/api/gallery/:directory",
AuthenticationMWs.authenticate
//TODO: implement
);
};
private addGetImage() {
this.app.get("/api/gallery/:directory/:image",
AuthenticationMWs.authenticate
//TODO: implement
);
};
private addGetImageThumbnail() {
this.app.get("/api/gallery/:directory/:image/thumbnail",
AuthenticationMWs.authenticate
//TODO: implement
);
};
private addSearch() {
this.app.get("/api/gallery/search",
AuthenticationMWs.authenticate
//TODO: implement
);
};
private addAutoComplete() {
this.app.get("/api/gallery/autocomplete",
AuthenticationMWs.authenticate
//TODO: implement
);
};
}