feat: setup project for docker deploy
This commit is contained in:
@@ -5,7 +5,7 @@ const baseUrl = process.env.REACT_APP_API_BASE_URL
|
||||
export async function shortenUrlApi(
|
||||
payload: ShortenUrlRequest
|
||||
): Promise<ShortenUrlResponse> {
|
||||
const response = await fetch(`${baseUrl}/`, {
|
||||
const response = await fetch(`${baseUrl}/api/shorten`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(payload),
|
||||
|
||||
Reference in New Issue
Block a user