mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-18 00:47:10 +00:00
Change the API route
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user