mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
15 lines
353 B
TypeScript
15 lines
353 B
TypeScript
import { GetSubscriptionResponse } from "../handlers/get-subscription";
|
|
|
|
export const fetchSubscription = async () => {
|
|
const response = await fetch("/api/stripe/subscription", {
|
|
method: "GET",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
});
|
|
|
|
const json: GetSubscriptionResponse = await response.json();
|
|
|
|
return json;
|
|
};
|