File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
java/org/ezcode/codetest/presentation/problemmanagement/problem Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- package org .ezcode .codetest .presentation .problemmanagement ;
1+ package org .ezcode .codetest .presentation .problemmanagement . problem ;
22
33import java .util .List ;
44import java .util .Set ;
2222@ RestController
2323@ Validated
2424@ RequiredArgsConstructor
25- @ RequestMapping ("/problems/search " )
25+ @ RequestMapping ("/api/problems " )
2626public class ProblemSearchController {
2727
2828 private final ProblemSearchService searchService ;
@@ -51,7 +51,7 @@ public ResponseEntity<Set<String>> getProblemSuggestions(
5151 @ ApiResponse (responseCode = "200" , description = "해당 검색어에 매칭되는 대한 문제 반환" )
5252 }
5353 )
54- @ GetMapping
54+ @ GetMapping ( "/search" )
5555 public ResponseEntity <List <ProblemSearchResponse >> getProblemSearchResult (
5656 @ RequestParam
5757 @ NotBlank (message = "검색어를 입력하세요." )
Original file line number Diff line number Diff line change 133133 const token = getToken ( ) ;
134134 if ( ! keyword || ! token ) return ;
135135 try {
136- const resp = await fetch ( '/problems/search /suggestions?keyword=' + encodeURIComponent ( keyword ) , {
136+ const resp = await fetch ( '/api/problems /suggestions?keyword=' + encodeURIComponent ( keyword ) , {
137137 headers : { 'Authorization' : 'Bearer ' + token }
138138 } ) ;
139139 if ( ! resp . ok ) throw new Error ( ) ;
205205 await new Promise ( r => setTimeout ( r , 1000 ) ) ;
206206
207207 try {
208- const resp = await fetch ( '/problems/search?keyword=' + encodeURIComponent ( kw ) , {
208+ const resp = await fetch ( '/api/ problems/search?keyword=' + encodeURIComponent ( kw ) , {
209209 method : 'GET' ,
210210 headers : { 'Authorization' : 'Bearer ' + token }
211211 } ) ;
You can’t perform that action at this time.
0 commit comments