This commit is contained in:
tmshv committed 2016-03-07 04:46:42 +03:00
1 parent 261e842802
commit 0485a4acea
122 files changed
+4866 -3842

No files matched your search

+4 -1
View File
@@ -1,7 +1,10 @@
import EndPoint from './EndPoint';
export default class APIEvent extends EndPoint {
list(skip=1, limit=10) {
list(page = 1) {
let limit = 5;
let skip = (page - 1) * limit;
let url = `/events?skip=${skip}&limit=${limit}`;
return this.get(url);
}