Learn how to use Nhost Functions
.js
and .ts
files inside of the ./functions
folder of your project and Nhost takes care of deploying your functions as part of a Deployment.
./functions
:
File | HTTP Endpoint |
---|---|
functions/index.js | https://[subdomain].functions.[region].nhost.run/v1/ |
functions/users/index.ts | https://[subdomain].functions.[region].nhost.run/v1/users |
functions/users/active.ts | https://[subdomain].functions.[region].nhost.run/v1/users/active |
functions/my-company.js | https://[subdomain].functions.[region].nhost.run/v1/my-company |