Skip to Content

API

The API package is responsible for defining the API routes, types and responses.

We use ts-rest to define the API, it’s a very simple and easy to use library that allows us to create a REST API with TypeScript, while maintaing the typesafety across projects.

Please take a look at the documentation of the package to understand how to define the API. Take a look at the contract definitions in this project to check how we are using it this project.

Last updated on