api client refactor
This commit is contained in:
11
apps/website/lib/services/sponsors/SponsorshipService.ts
Normal file
11
apps/website/lib/services/sponsors/SponsorshipService.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { api as api } from '../../api';
|
||||
|
||||
export async function getSponsorshipPricing(): Promise<any> {
|
||||
const dto = await api.sponsors.getPricing();
|
||||
return dto;
|
||||
}
|
||||
|
||||
export async function getSponsorSponsorships(sponsorId: string): Promise<any> {
|
||||
const dto = await api.sponsors.getSponsorships(sponsorId);
|
||||
return dto;
|
||||
}
|
||||
Reference in New Issue
Block a user