/api/v1/account_by_username -> /api/v1/accounts

This commit is contained in:
Alex Gleason
2020-03-28 00:57:26 -05:00
parent a3fbd4bb6d
commit 8458ce726c

View File

@ -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());