Skip to content

Commit

Permalink
feat : 글 등록 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
YASICJUNWOO committed Sep 19, 2023
1 parent 0e7d1f5 commit ae242d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/main/java/KJW/MBTIcoummunity/Post/PostController.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package KJW.MBTIcoummunity.Post;

import KJW.MBTIcoummunity.Post.Dto.PostCreateDto;
import KJW.MBTIcoummunity.Post.Setvice.PostService;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

Expand All @@ -24,14 +23,15 @@ public class PostController {

@GetMapping()
public List<Post> getEntity() {

logger.warn("getEntity");
return service.getEntity();
}

//@PostMapping("")
//public ResponseEntity<?> createEntity(@RequestBody PostCreateDto dto) {
//service.createPost(dto);
//return ResponseEntity<>();
//service.createPost(dto);
//return ResponseEntity<>();
//}

}
1 change: 0 additions & 1 deletion src/main/java/KJW/MBTIcoummunity/Post/PostRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PostRepository extends JpaRepository<Post, Long> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class LoginController {

@GetMapping("/success")
public ResponseEntity<?> success() {
logger.info("로그인 성공");
return new ResponseEntity<>(HttpStatus.OK);
}

Expand Down

0 comments on commit ae242d1

Please sign in to comment.