-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from pknu-wap/bug/77-bug-스테이지-초기화-버그-수정
Bug/77 bug 스테이지 초기화 버그 수정
- Loading branch information
Showing
4 changed files
with
33 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sever/src/main/java/com/example/rememberdokdo/Controller/StageResetController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.example.rememberdokdo.Controller; | ||
|
||
import com.example.rememberdokdo.Dto.StageResetResponseDto; | ||
import com.example.rememberdokdo.Service.StageResetService; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
@RestController | ||
@RequestMapping("/stage") | ||
public class StageResetController { | ||
@Autowired | ||
private StageResetService stageResetService; | ||
|
||
// POST /stage/reset | ||
@PostMapping("/reset") | ||
public ResponseEntity<StageResetResponseDto> resetStage( | ||
@RequestParam String sessionId) { | ||
return ResponseEntity.ok(stageResetService.resetStage(sessionId)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters