Skip to content

Commit b251c69

Browse files
committed
test scoring in prod
1 parent d8339f5 commit b251c69

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

components/landing/delete.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,20 @@ import axios from "axios";
44
import { Button } from "../ui/button";
55

66
const TestEmail = () => {
7-
const emailApi = () => {
8-
axios.post("/api/test");
7+
const emailApi = async () => {
8+
const data = await axios.post("/api/test");
9+
console.log(data);
910
};
10-
return <Button onClick={emailApi}>Test Email</Button>;
11+
const scoreApi = async () => {
12+
const data = await axios.post("/api/code/score");
13+
console.log(data);
14+
};
15+
return (
16+
<>
17+
<Button onClick={emailApi}>Test Email</Button>
18+
<Button onClick={scoreApi}>Test Score</Button>
19+
</>
20+
);
1121
};
1222

1323
export default TestEmail;

0 commit comments

Comments
 (0)