/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
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

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