import { endpoint } from "../src"; import { startServer } from "../src/core/server"; import { route } from "../src/routing/router"; type Data = { name: string; }; startServer( endpoint( route([ { app: async (req) => { return { status: 200, body: { name: "foo", }, }; }, method: "GET", url: "/", }, { app: async (req) => { return { status: 200, body: { name: "polo", }, }; }, method: "GET", url: "/marco", }, ]), ), );