You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
338 B
TypeScript
12 lines
338 B
TypeScript
import { Api, replacer } from "../common/api.ts";
|
|
import { MakeHandlers, makeServe } from "../common/deps/yaypi.ts";
|
|
|
|
const handlers: MakeHandlers<typeof Api> = {
|
|
v1: {
|
|
listSchemas: async (limit) => [],
|
|
saveSchema: async (schema) => ({ ...schema, id: 0 }),
|
|
},
|
|
};
|
|
|
|
export const serveApi = makeServe(Api, handlers, "/api", replacer);
|