feat(server): api endpoint to get Plaid link token

This commit is contained in:
Ahmed Bouhuolia
2024-01-30 22:51:55 +02:00
parent ba3ea93a2d
commit b9886cfac3
10 changed files with 271 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
import { Inject, Service } from 'typedi';
import { PlaidLinkTokenService } from './PlaidLinkToken';
@Service()
export class PlaidApplication {
@Inject()
private getLinkTokenService: PlaidLinkTokenService;
/**
*
* @param tenantId
* @param itemId
* @returns
*/
public getLinkToken(tenantId: number) {
return this.getLinkTokenService.getLinkToken(tenantId);
}
}