Add interface for fetching links from server

This commit is contained in:
Ilango 2024-01-19 12:34:22 +05:30
parent 9637c12297
commit 43fa1166df
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
import client from './client'
const fetchAllLinks = (url, relativeLinksMethod) =>
client.get(`/fetch-links?url=${encodeURIComponent(url)}&relativeLinksMethod=${relativeLinksMethod}`)
export default {
fetchAllLinks
}