13 lines
271 B
TypeScript
13 lines
271 B
TypeScript
import {
|
|
EndpointRequest,
|
|
EndpointResponse,
|
|
} from "@plugos/plugos/hooks/endpoint";
|
|
|
|
export function endpointTest(req: EndpointRequest): EndpointResponse {
|
|
console.log("I'm running on the server!", req);
|
|
return {
|
|
status: 200,
|
|
body: "Hello world!",
|
|
};
|
|
}
|