REST
Overview
> cs generate:rest
? Select HTTP method (Use arrow keys)
❯ GET
POST
PUT
DELETE
? Select HTTP method GET
? Name of your REST endpoint helloLast updated
Was this helpful?
> cs generate:rest
? Select HTTP method (Use arrow keys)
❯ GET
POST
PUT
DELETE
? Select HTTP method GET
? Name of your REST endpoint helloLast updated
Was this helpful?
Was this helpful?
/**
* This handler was generated by code.store CLI.
*
* Visit our documentation to learn more about the support of REST APIs in our SDK:
* https://docs.code.store/getting-started/sdk/rest-apis
*
* You can also join our community at https://spectrum.chat/code-store if you have any
* questions which are not covered by the documentation.
*
*/
import { Handler } from 'codestore-utils';
const handler: Handler = async (event, context) => {
// your code goes here
return 'Hello, world!';
}
export default handler;