mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
Extracts the API implementation to a package so we can potentially reuse it across different applications in the event that we move off using a Next.js API route. Additionally tidies up the tokens page and form to be more simplified.
6 lines
274 B
TypeScript
6 lines
274 B
TypeScript
import { createNextRouter } from '@documenso/api/next';
|
|
import { ApiContractV1 } from '@documenso/api/v1/contract';
|
|
import { ApiContractV1Implementation } from '@documenso/api/v1/implementation';
|
|
|
|
export default createNextRouter(ApiContractV1, ApiContractV1Implementation);
|