com.xlrit.gears.server.graphql.ReportResolver Maven / Gradle / Ivy
package com.xlrit.gears.server.graphql;
import java.util.Collections;
import java.util.List;
import com.xlrit.gears.base.model.Report;
import lombok.RequiredArgsConstructor;
import org.springframework.graphql.data.method.annotation.QueryMapping;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
@Controller
@RequiredArgsConstructor
public class ReportResolver {
@PreAuthorize("isAuthenticated()")
@QueryMapping
public List reports() {
return Collections.emptyList();
}
}