generated from lucien/api-template
add: improved the frontend and the backend by adding websockets
This commit is contained in:
parent
ecf7b61aca
commit
fbf7821320
18 changed files with 255 additions and 65 deletions
|
@ -31,7 +31,7 @@ export default function CreateChannel() {
|
|||
axios
|
||||
.post("/api/channels/add", { name, description, token })
|
||||
.then(() => {
|
||||
navigate("/");
|
||||
navigate(`/c/${name}`);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err.response.data.message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue