Skip to content

Commit

Permalink
점수 chat gpt 변환 기능을 주석으로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
castberry10 committed Aug 6, 2024
1 parent 565ac98 commit 559ac1e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/app/log/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import styles from './page.module.scss'
import Header from "../_common/header";
import NavBar from "../_common/navBar";
import { useState } from "react";

import axios from "axios";

export function logInput() {
console.log("log input select");
Expand All @@ -21,8 +21,23 @@ export function logInput() {
)
}

export default function LogPage() {
export default async function LogPage() {
const [ score, setScore ] = useState(100);

// /////
// try {
// const response_score = await axios.post(
// 'https://castberry.kr:3650/api/open', {
// "goal": {},
// "status": {},
// }
// );
// setScore(JSON.parse(response_score.data).score);
// } catch (error) {
// console.error(error);
// }

/////
return (
<div>
<div className={styles.log_frame}>
Expand Down

0 comments on commit 559ac1e

Please sign in to comment.