update
This commit is contained in:
1 parent
261e842802
commit
0485a4acea
122 files changed
+4866
-3842
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user