diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-04-16 11:25:03 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-04-16 11:25:03 +0530 |
commit | 71398d59b1838b85f821db4465e1bd98641fe1db (patch) | |
tree | ee2bf02587fc808894e3bf0a5362ec6fd1ba8071 | |
parent | 9c911e79c18d09224b90546ef29c2e9986e4cc0c (diff) |
Getting a friend code is now a GET request as it should be
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/route/friend.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json index 24c152a..eebdd81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "financer", - "version": "0.0.3", + "version": "0.1.0", "description": "Pocket Money Tracker", "main": "dist/index.js", "scripts": { diff --git a/src/route/friend.ts b/src/route/friend.ts index 9245bca..f477c23 100644 --- a/src/route/friend.ts +++ b/src/route/friend.ts @@ -21,7 +21,7 @@ import { listFriends, friendRequest, addFriend, removeFriend } from "../controll const router: Router = Router(); router.get("/", listFriends); -router.post("/initiate", friendRequest); +router.get("/code", friendRequest); router.post("/", addFriend); router.delete("/", removeFriend); |