Skip to content

Commit

Permalink
move docs to root, move endpoints to /api
Browse files Browse the repository at this point in the history
  • Loading branch information
dashaun committed Dec 18, 2023
1 parent bceae6a commit 39998fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/static/docs</outputDirectory>
<outputDirectory>${project.build.outputDirectory}/static/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/generated-docs</directory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static void main(String[] args) {
}

@RestController
@RequestMapping("/api")
class YouTubeController {

Logger logger = LoggerFactory.getLogger(YouTubeController.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void getShouldEchoHubChallenge() {
.removePort())))
.when()
.port(this.port)
.get("/?hub.mode=subscribe&hub.challenge=CHALLENGE_STRING&hub.topic=somthingcool")
.get("/api/?hub.mode=subscribe&hub.challenge=CHALLENGE_STRING&hub.topic=somthingcool")
.then()
.assertThat().statusCode(is(200))
.assertThat().body(is("CHALLENGE_STRING"));
Expand All @@ -63,7 +63,7 @@ void postShouldReturnSuccess() throws Exception {
.body(exampleEvent)
.when()
.port(this.port)
.post("/")
.post("/api/")
.then()
.assertThat()
.statusCode(is(200));
Expand Down

0 comments on commit 39998fb

Please sign in to comment.