Skip to content

Commit

Permalink
Merge pull request #5 from wiemanboy/feature/debug-cookie
Browse files Browse the repository at this point in the history
DELETE: remove debug endpoint
  • Loading branch information
wiemanboy authored Oct 7, 2024
2 parents be92f7e + 19cc03a commit c9fd102
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.wiemanboy</groupId>
<artifactId>WiemanApi</artifactId>
<version>0.0.1-DEBUG</version>
<version>0.0.1</version>
<name>WiemanApi</name>
<description>WiemanApi</description>
<url/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import com.wiemanboy.wiemanapi.application.ProfileService;
import com.wiemanboy.wiemanapi.presentation.dto.response.ProfileDto;
import com.wiemanboy.wiemanapi.presentation.dto.response.ProfileLocaleDto;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/profiles")
Expand All @@ -15,11 +18,6 @@ public ProfileController(ProfileService profileService) {
this.profileService = profileService;
}

@GetMapping("/test/")
public String getTest(@CookieValue(value = "token") String testCookie) {
return "Cookie value: " + testCookie;
}

@GetMapping("/{id}")
public ProfileDto getProfile(@PathVariable String id) {
return ProfileDto.from(profileService.getProfile(id));
Expand Down

0 comments on commit c9fd102

Please sign in to comment.