mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-26 20:57:24 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
7
api-client/create-demo.ts
Normal file
7
api-client/create-demo.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { Poll } from "@prisma/client";
|
||||
import axios from "axios";
|
||||
|
||||
export const createDemo = async (): Promise<Poll> => {
|
||||
const { data } = await axios.post<Poll>("/api/poll/create-demo");
|
||||
return data;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue