gallery api update

This commit is contained in:
tmshv committed 2016-02-25 05:22:36 +03:00
1 parent 7ceb862dfc
commit ea0d1175a5
3 files changed
+45 -59

No files matched your search

+2 -6
View File
@@ -1,7 +1,3 @@
/**
* Created by tmshv on 22/11/14.
*/
import EndPoint from './EndPoint';
export default class APIGallery extends EndPoint {
@@ -9,8 +5,8 @@ export default class APIGallery extends EndPoint {
return this.request.get(`/gallery/${year}`, {cache: true});
}
album(year, course, album) {
let url = `/gallery/${year}/${course}/${album}`;
album(year, course, album, doPopulate) {
let url = `/gallery/${year}/${course}/${album}?populate=${doPopulate}`;
return this.request.get(url, {cache: true});
}
}