phase-5: code maintenance
This commit is contained in:
committed by
saikiranvella
parent
dbcc0376b0
commit
57625c27d7
@@ -0,0 +1,13 @@
|
||||
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(', '),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user