Keep demo values fixed

This commit is contained in:
Luke Vella 2022-04-15 18:57:13 +01:00
parent 53906b1acf
commit e032f6f993
5 changed files with 83 additions and 42 deletions

View file

@ -2,6 +2,6 @@ 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");
const { data } = await axios.post<Poll>("/api/poll/demo");
return data;
};