diff --git a/src/routes/api/historical-price/+server.ts b/src/routes/api/historical-price/+server.ts index 9d1409b0..27a47a5d 100644 --- a/src/routes/api/historical-price/+server.ts +++ b/src/routes/api/historical-price/+server.ts @@ -5,7 +5,7 @@ export const POST: RequestHandler = async ({ request, locals }) => { const { apiURL, apiKey } = locals; const postData = { ticker: data?.ticker, timePeriod: data?.timePeriod }; - const response = await fetch(apiURL + "/historical-price", { + const response = await fetch(apiURL + "/export-price-data", { method: "POST", headers: { "Content-Type": "application/json", diff --git a/src/routes/stocks/[tickerID]/+page.svelte b/src/routes/stocks/[tickerID]/+page.svelte index d211f6dc..f9b00005 100644 --- a/src/routes/stocks/[tickerID]/+page.svelte +++ b/src/routes/stocks/[tickerID]/+page.svelte @@ -1,10 +1,6 @@