Skip to main content

Backend routes in the Editor Starter

Some Editor Starter features require backend endpoints. The default implementation uses the React Router 7 framework.

POST /api/captions​

Used to generate captions for a video based on an audio file.

GET /api/fonts/:name​

Returns the metadata for a specific font, such as available weights and styles and their corresponding Google Fonts URLs.
This information is provided by the backend because the metadata of all default fonts would be more than 10MB.

POST /api/upload​

Needed to create a presigned URL for uploading a file to S3.

POST /api/render​

Triggers a render on Remotion Lambda. This route is only used when rendering with Remotion Lambda.

POST /api/progress​

Gets the current progress of a render on Remotion Lambda. This route is only used when rendering with Remotion Lambda.