1
0
silverbullet/plugs/core/server.ts

10 lines
264 B
TypeScript
Raw Normal View History

import { EndpointRequest, EndpointResponse } from "../../plugos/hooks/endpoint";
2022-03-21 14:21:34 +00:00
export function endpointTest(req: EndpointRequest): EndpointResponse {
console.log("I'm running on the server!", req);
return {
status: 200,
body: "Hello world!",
};
}