Skip to content

Commit

Permalink
fix add_robot -> add/robot
Browse files Browse the repository at this point in the history
  • Loading branch information
chennisden committed Jun 5, 2024
1 parent e994314 commit 5f803d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/hooks/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class api {
public async addRobot(robot: Robot): Promise<void> {
const s = robot.name;
try {
await this.api.post("/add_robot/", robot);
await this.api.post("/add/robot/", robot);
} catch (error) {
if (axios.isAxiosError(error)) {
console.error("Error adding robot:", error.response?.data);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Home = () => {
width: "100%",
}}
onClick={() => {
navigate("/add_robot");
navigate("/add/robot");
}}
>
Make a Robot
Expand Down

0 comments on commit 5f803d0

Please sign in to comment.