close to final version added the subtaskand comment working section
This commit is contained in:
16
server/app_spin.js
Normal file
16
server/app_spin.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
async function handleRequest(req, res) {
|
||||
console.log("Handle called");
|
||||
return {
|
||||
status: 200,
|
||||
headers: { 'content-type': 'text/plain' },
|
||||
body: 'Hello from Spin Wasm (Corrected Export)!'
|
||||
};
|
||||
}
|
||||
|
||||
export const incomingHandler = {
|
||||
handle: handleRequest
|
||||
};
|
||||
|
||||
// Keep default just in case, but incomingHandler is key
|
||||
export default handleRequest;
|
||||
Reference in New Issue
Block a user