Change the API route

This commit is contained in:
Arkaprabha Chakraborty
2024-08-06 01:26:23 +05:30
parent 65f113a90f
commit 321e83fbc9
3 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ export default function Home() {
const handleSubmit = async (e) => {
e.preventDefault();
const response = await axios.post(
`${process.env.NEXT_PUBLIC_BACKEND_URL}/shorten`,
`${process.env.NEXT_PUBLIC_BACKEND_URL}/reduce/shorten`,
{
long_url: longUrl,
},