2022-03-29 09:21:32 +00:00
|
|
|
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!",
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-03-28 06:51:24 +00:00
|
|
|
export function welcome(plugName: string) {
|
|
|
|
if (plugName !== "core") {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
console.log("Hello world!!", plugName);
|
2022-03-25 11:03:06 +00:00
|
|
|
return "hi";
|
2022-03-18 13:59:04 +00:00
|
|
|
}
|