We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8339f5 commit b251c69Copy full SHA for b251c69
components/landing/delete.tsx
@@ -4,10 +4,20 @@ import axios from "axios";
4
import { Button } from "../ui/button";
5
6
const TestEmail = () => {
7
- const emailApi = () => {
8
- axios.post("/api/test");
+ const emailApi = async () => {
+ const data = await axios.post("/api/test");
9
+ console.log(data);
10
};
- return <Button onClick={emailApi}>Test Email</Button>;
11
+ const scoreApi = async () => {
12
+ const data = await axios.post("/api/code/score");
13
14
+ };
15
+ return (
16
+ <>
17
+ <Button onClick={emailApi}>Test Email</Button>
18
+ <Button onClick={scoreApi}>Test Score</Button>
19
+ </>
20
+ );
21
22
23
export default TestEmail;
0 commit comments