The handler can directly return JSON data, a Promise or use event.node.res.end() to send a response. Example: Create the /api/hello route with server/api/hello.
確定! 回上一頁