Skip to content

Commit

Permalink
Merge pull request #180 from dorimu0/refact/navbar
Browse files Browse the repository at this point in the history
URL修正及び定数化
  • Loading branch information
Regulus0811 authored Oct 23, 2024
2 parents fb535bf + c6d95ab commit 1fccb21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/prompts/postPrompt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Cookies from 'js-cookie';
import BASE_URLS from '../baseUrl';

const postPrompt = async (
cId: number,
Expand All @@ -12,7 +13,7 @@ const postPrompt = async (
};
try {
const response = await fetch(
`http://localhost:8080/api/nest/class/${cId}/prompts/${id}`,
`${BASE_URLS.nest}/class/${cId}/prompts/${id}`,
{
method: 'POST',
headers: {
Expand Down

0 comments on commit 1fccb21

Please sign in to comment.