Skip to content

Commit

Permalink
chore: disable graphql by default
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Nov 25, 2023
1 parent 34f6bef commit 2c1fbb0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import graphql.schema.DataFetchingEnvironment;
import io.papermc.hangar.components.images.service.AvatarService;
import io.papermc.hangar.service.internal.file.FileService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.graphql.data.method.annotation.QueryMapping;
import org.springframework.graphql.data.method.annotation.SchemaMapping;
import org.springframework.stereotype.Controller;
Expand All @@ -15,6 +16,7 @@
import static io.papermc.hangar.components.query.QueryHelper.selectField;

@Controller
@ConditionalOnProperty("enable-graphql")
public class QueryMappings {

private final FileService fileService;
Expand Down

0 comments on commit 2c1fbb0

Please sign in to comment.