Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Commit 3853a00

Browse files
committed
configureable endpoint url
1 parent 2b8880e commit 3853a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql-java-spring-web/src/main/java/graphql/spring/controller/GraphQLController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class GraphQLController {
2020
private GraphQL graphql;
2121

2222

23-
@RequestMapping(value = "/graphql", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
23+
@RequestMapping(value = "${graphql.url:graphql}", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
2424
public Map<String, Object> graphql(@RequestBody Map<String, Object> body) {
2525
String query = (String) body.get("query");
2626
if (query == null) {

0 commit comments

Comments
 (0)