Skip to content

Git.ApiLive reference

Source: packages/git/src/Server.ts Kind: Layer

Git’s public routes as an ordinary HttpRouter layer. Merge this with your application’s routes and provide your route middleware to the result. The application owns its API, HTTP server, platform, and CORS policy.

const Routes = Layer.mergeAll(AppApiLive, Git.ApiLive).pipe(
Layer.provide(Authentication.layer),
);