Skip to content

Commit

Permalink
fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Californium251 committed Aug 30, 2023
1 parent a923a50 commit d1a37fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "frontend",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:5001",
"proxy": "http://localhost:5001/",
"dependencies": {
"@reduxjs/toolkit": "^1.9.1",
"@rollbar/react": "^0.11.2",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Chat = () => {
};
try {
console.log(routes);
const res = await axios.get(routes.login, config);
const res = await axios.get(routes.data, config);
dispatch(channelSliceActoins.addChannels(res.data.channels));
dispatch(channelSliceActoins.makeActive(res.data.currentChannelId));
dispatch(addMessages(res.data.messages));
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export default {
loginPage: 'login',
signupPage: 'signup',
root: '/',
login: '/api/v1/data',
login: '/api/v1/login',
signup: '/api/v1/signup',
data: '/api/v1/data',
};

0 comments on commit d1a37fd

Please sign in to comment.