registration API
This commit is contained in:
parent
210362e665
commit
7e14eefc81
27 changed files with 216 additions and 136 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue