mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 02:06:34 +02:00
7 lines
201 B
TypeScript
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;
|
|
};
|