Skip to content

Commit

Permalink
feat(post suggestion function): 건의사항을 보내는 api 함수 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinkr committed Dec 23, 2023
1 parent 9f8688e commit fd8d5d5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/apis/suggestion/post-suggestion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import http from '@apis/http';
import { SERVER_URL } from '@config/index';

const postSuggestion = async (value: string | undefined) => {
await http.post(
`${SERVER_URL}/api/suggestion`,
{
content: value,
},
{
headers: {
'Content-Type': 'application/json',
},
},
);
};

export default postSuggestion;

0 comments on commit fd8d5d5

Please sign in to comment.