+ abstract site api
This commit is contained in:
1 parent
d15f9e162f
commit
ecee774658
3 files changed
+29
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
export default class EndPoint{
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import EndPoint from './EndPoint';
|
||||||
|
|
||||||
|
export default class Feed extends EndPoint {
|
||||||
|
add(post) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import {EventEmitter} from 'events';
|
||||||
|
import Feed from './Feed';
|
||||||
|
|
||||||
|
export default class Service extends EventEmitter{
|
||||||
|
constructor(secret) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
this.secret = secret;
|
||||||
|
this.feed = new Feed(this.request);
|
||||||
|
}
|
||||||
|
|
||||||
|
request(){
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user