/api/v1/account_by_username -> /api/v1/accounts
This commit is contained in:
parent
a3fbd4bb6d
commit
8458ce726c
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ export function fetchAccount(id) {
|
|||
|
||||
export function fetchAccountByUsername(username) {
|
||||
return (dispatch, getState) => {
|
||||
api(getState).get(`/api/v1/account_by_username/${username}`).then(response => {
|
||||
api(getState).get(`/api/v1/accounts/${username}`).then(response => {
|
||||
dispatch(importFetchedAccount(response.data));
|
||||
}).then(() => {
|
||||
dispatch(fetchAccountSuccess());
|
||||
|
|
Loading…
Reference in a new issue