Code cleanup

This commit is contained in:
2026-04-14 22:30:35 +05:30
parent 0e561a3fc8
commit bbdb2a3a61

View File

@@ -1,13 +1,9 @@
import { serve } from "bun";
import index from "./index.html";
import { getPackageDetails } from "./lib/npm_registry";
import { fetchAllPackageDetails } from "./services/api";
const server = serve({
routes: {
// Serve index.html for all unmatched routes.
"/*": index,
"/api/analyze": async req => {
const data = await req.json();