Replace logo, fix #57 - delete/unreblog/unfavourite API, fix #45 - app

registration API
This commit is contained in:
Eugen Rochko
2016-09-26 23:55:21 +02:00
parent 210362e665
commit 7e14eefc81
27 changed files with 216 additions and 136 deletions

View File

@ -22,6 +22,16 @@ export function reblog(status) {
};
};
export function unreblog(status) {
return (dispatch, getState) => {
api(getState).post(`/api/statuses/${status.get('id')}/unreblog`).then(response => {
//
}).catch(error => {
//
});
};
};
export function reblogRequest(status) {
return {
type: REBLOG_REQUEST,
@ -57,6 +67,16 @@ export function favourite(status) {
};
};
export function unfavourite(status) {
return (dispatch, getState) => {
api(getState).post(`/api/statuses/${status.get('id')}/unfavourite`).then(response => {
//
}).catch(error => {
//
});
};
};
export function favouriteRequest(status) {
return {
type: FAVOURITE_REQUEST,