Backend APIs expose server-side logic that your project's frontend extensions can call, such as a dashboard page, site widget, or other extension UI. You build them using HTTP endpoints.
Note: HTTP endpoints replace HTTP functions from the legacy Wix CLI for Apps. See the Migration Guide.
HTTP endpoints are files you place in src/pages/api/ that handle incoming requests. Under the hood they're powered by Astro endpoints, so they're auto-discovered from the filesystem rather than registered like typical extensions.
Caution: Because of this, and unlike HTTP functions in the legacy Wix CLI for Apps, HTTP endpoints aren't traditional extensions:
npm run generate.src/extensions.ts.