Skip to content

Commit

Permalink
feat: setup google clientID
Browse files Browse the repository at this point in the history
  • Loading branch information
huynamboz committed Nov 26, 2024
1 parent e09d2c1 commit 7ab0c21
Show file tree
Hide file tree
Showing 3 changed files with 278 additions and 119 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
VITE_API_ENDPOINT=https://BACKEND_URL/api/v1
VITE_BASE_URL_SOCKET=https://BACKEND_URL/rooms
VITE_BASE_URL_SOCKET=https://BACKEND_URL/rooms
VITE_GOOGLE_CLIENTID=YOUR_GOOGLE_CLIENTID
4 changes: 2 additions & 2 deletions src/services/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const createQuizUseAIApi = async (
language: string,
option: Option,
): Promise<Quiz[]> => {
return $api(`http://localhost:3000/api/ai/quizzes`, {
return $api(`https://hinam.nuxt.dev/api/ai/quizzes`, {
method: 'POST',
body: {
model,
Expand All @@ -29,7 +29,7 @@ export interface Model {
}

export const getModelList = async (): Promise<Model[]> => {
return $api(`http://localhost:3000/api/ai/models`, {
return $api(`https://hinam.nuxt.dev/api/ai/models`, {
method: 'GET',
})
}
Loading

0 comments on commit 7ab0c21

Please sign in to comment.