Files
market_screener/ui/src/routes/+page.js
T
2026-06-06 22:55:43 -04:00

14 lines
362 B
JavaScript

import { fetchCatalysts, screenTickers } from '$lib/api.js';
// Client-only — the API lives at localhost:3000, not accessible during SSR
export const ssr = false;
export async function load() {
const cat = await fetchCatalysts();
const results = await screenTickers(cat.tickers);
return {
results,
catalystInput: cat.tickers.join(', '),
};
}