Skip to content

Commit

Permalink
Merge pull request #41 from catchroom/develop
Browse files Browse the repository at this point in the history
fix : cors error
  • Loading branch information
sungjiwoon authored Jan 22, 2024
2 parents 1000a9f + 0064aee commit 05cf0f2
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -18,23 +19,15 @@
@Slf4j
public class ChatFindController {
private final ChatMongoService chatMongoService;

@GetMapping("/room/find")
public ResponseEntity<?> roomFindInfo(
@RequestHeader("Authorization") String accessToken,
@RequestParam(name = "id") String id
) {
log.info("ChatFindController : {}", id);
return ResponseEntity.ok(
ApiResponse.create(6003, chatMongoService.findAll(id))
);
}

// @DeleteMapping("/room")
// public ResponseEntity<?> roomDelete(
// @RequestParam(name = "id") String id
// ) {
// chatMongoService.deleteRoomId(id);
// return ResponseEntity.ok(
// ApiResponse.create(6004, id + " ์‚ญ์ œ ์™„๋ฃŒ")
// );
// }
}

0 comments on commit 05cf0f2

Please sign in to comment.