-
Notifications
You must be signed in to change notification settings - Fork 6
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 #8 from readme-generator/feature/fixed_requirement
TCP 기능 추가에 따른 백엔드 아키텍처 변경
- Loading branch information
Showing
5 changed files
with
71 additions
and
11 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/main/java/kr/markdown/alreadyme/controller/AiController.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,24 @@ | ||
package kr.markdown.alreadyme.controller; | ||
|
||
import kr.markdown.alreadyme.domain.dto.ReadmeItemDto; | ||
import kr.markdown.alreadyme.domain.model.ReadmeItem; | ||
import kr.markdown.alreadyme.service.AiService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import javax.validation.Valid; | ||
|
||
@RestController | ||
@RequestMapping("api/v1/ai") | ||
@CrossOrigin(origins = "*") | ||
@RequiredArgsConstructor | ||
public class AiController { | ||
private final AiService service; | ||
|
||
@PutMapping("readme") | ||
@ResponseStatus(HttpStatus.OK) | ||
public ReadmeItem post(@Valid @RequestBody ReadmeItemDto.UpdateReadmeText updateDto) throws Exception { | ||
return service.responseReadmeText(updateDto); | ||
} | ||
} |
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
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