-
yarn install
in root, /api & /api-routes folders -
Build api endpoint
Using command
ROUTE=<path> METHOD<method> yarn build
in root directory.// Example $ ROUTE=/test METHOD=get yarn build
-
Run the endpoint
Using command
yarn dev --build <body>
in root directory.// Example $ yarn dev --body '{ "test": 100 }'