Skip to content

Commit

Permalink
refactor(backend): ♻️ add prefix /api to post /
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepaPrasanna committed May 3, 2024
1 parent 29691af commit 7122a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { deleteUrl, getLongUrl, shortenUrl } from "../controllers";
const router: Router = express.Router();

router.post(
"/",
"/api/",
body("url").notEmpty().isURL().withMessage("Not a valid url"),
shortenUrl
);
Expand Down

0 comments on commit 7122a81

Please sign in to comment.