feat(be): add guards, question update api and question delete api #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
개요
세션과 토큰의 유효성을 검사하는 가드, 질문이 존재하는지 검사하는 가드, 질문의 주인인지를 검사하는 가드를 만들었습니다.
Patch와 delete를 이용한 질문의 상태변경을 만들었습니다.
답변완료여부를 통해 수정과 삭제의 권한을 제어합니다.
답변완료는 요청으로 false로 만들 수 없습니다.
질문의 생성자인지를 판단해서 pinned와 closed의 권한을 제어합니다.
경로 별칭을 만들었습니다.
이슈