Skip to content

Commit

Permalink
fix: nginx 라우팅 컨벤션에 의한 url 매핑하는 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mataeLee committed Oct 12, 2024
1 parent 9dc9acb commit 197b518
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions http/login.http
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### 로그인
POST {{host}}/login
POST {{host}}/api/login
Content-Type: application/json

{
Expand All @@ -15,4 +15,4 @@ Content-Type: application/json

client.log(response.body.data.accessToken);
client.global.set("accessToken",response.body.data.accessToken)
%}
%}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package catchweak.web.es.controller
import catchweak.web.es.dao.ArticleDocument
import catchweak.web.es.service.IndexService
import catchweak.web.es.service.SearchService
import org.springframework.data.domain.PageRequest
import org.springframework.data.domain.Pageable
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/api")
class ArticleESController(
private val indexService: IndexService,
private val searchService: SearchService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("")
@RequestMapping("/api")
class MemberController(private val memberService: MemberService) {
@PostMapping("/signup")
fun signUp(@RequestBody signUpRequest: SignUpRequest): ResponseEntity<String> {
Expand Down

0 comments on commit 197b518

Please sign in to comment.