2022-03-21 14:21:34 +00:00
|
|
|
import { EndpointRequest, EndpointResponse } from "../../plugbox/endpoints";
|
|
|
|
|
|
|
|
export function endpointTest(req: EndpointRequest): EndpointResponse {
|
|
|
|
console.log("I'm running on the server!", req);
|
|
|
|
return {
|
|
|
|
status: 200,
|
|
|
|
body: "Hello world!",
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function welcome() {
|
|
|
|
for (var i = 0; i < 10; i++) {
|
|
|
|
console.log("Welcome to you all!!!");
|
|
|
|
}
|
2022-03-18 13:59:04 +00:00
|
|
|
}
|