0.0.4 • Published 9 months ago
@serebano/upi v0.0.4
upi
Universal Programming Interface
// api/index.ts
export const sayHi = (name: string) => `Hi ${name}`;
import * as myApi from 'http://localhost:3030'
awit myApi.sayHi()
import { serve } from "@serebano/upi/serve";
await serve({
port: 8077,
apiDir: import.meta.dirname,
});