1
0
silverbullet/plugs/core/server.ts
2022-03-27 11:31:12 +02:00

18 lines
348 B
TypeScript

import {
EndpointRequest,
EndpointResponse,
} from "../../plugos/feature/endpoint";
export function endpointTest(req: EndpointRequest): EndpointResponse {
console.log("I'm running on the server!", req);
return {
status: 200,
body: "Hello world!",
};
}
export function welcome() {
console.log("Hello world!");
return "hi";
}