Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/5 create article #14

Merged
merged 4 commits into from
Jul 2, 2023
Merged

Conversation

yoo-jimin127
Copy link
Owner

Resolve #5

Create Article Form

  • 폼 내부 내용
    • 아티클 제목 ( 제목 유효성 → ‘title must be unique’)
    • 아티클 설명 (미입력시 → ‘description can't be blank’)
    • 아티클 작성 (미입력시 → ‘body can't be blank’)
    • 태그, 생성 버튼 (미입력시 → 아티클 생성에 문제 X, 정상 업로드)
    • 글 작성 부분 : ASCII 코드가 아닐 경우 공백으로 바꿔버려서 한글만 작성된 문자는 하나도 남겨져있지 않도록 되어있음
  • 글 내용 : markdown 파싱되어서 보여지도록

@yoo-jimin127 yoo-jimin127 added the feature 기능 구현 label Jul 2, 2023
@yoo-jimin127 yoo-jimin127 merged commit 704a414 into feat/3_profile Jul 2, 2023
2 checks passed
@yoo-jimin127 yoo-jimin127 mentioned this pull request Jul 5, 2023
@@ -53,3 +53,15 @@ export const getFavoritedArticles = async (username: string) => {
});
return res.data;
};

export const createArticle = async ({ title, description, body, tagList }: ArticleProps) => {
const res = await authHttp.post(`${baseURL}/articles`, {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

authHttp와 http로 따로 구분하는 방법도 좋네요!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants