1
0
Fork 0
mirror of https://github.com/lukevella/rallly.git synced 2025-05-16 18:36:24 +02:00
rallly/api-client/create-demo.ts
2022-04-15 19:09:28 +01:00

7 lines
201 B
TypeScript

import { Poll } from "@prisma/client";
import axios from "axios";
export const createDemo = async (): Promise<Poll> => {
const { data } = await axios.post<Poll>("/api/poll/demo");
return data;
};