+ abstract site api

This commit is contained in:
tmshv committed 2016-03-23 02:05:30 +03:00
1 parent d15f9e162f
commit ecee774658
3 files changed
+29

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
export default class EndPoint{
constructor() {
}
}
+9
View File
@@ -0,0 +1,9 @@
import EndPoint from './EndPoint';
export default class Feed extends EndPoint {
add(post) {
return new Promise((resolve, reject) => {
});
}
}
+15
View File
@@ -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(){
}
}