Creates all (?) endpoints
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package ch.gtache.elderscrollslegends.service.config;
|
||||
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import org.jboss.logging.Logger;
|
||||
import org.jboss.resteasy.reactive.Cache;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
@Path("config.json")
|
||||
public class ConfigResource {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(ConfigResource.class);
|
||||
|
||||
@GET
|
||||
@Produces("application/json")
|
||||
|
||||
@Cache
|
||||
public InputStream getConfiguration() {
|
||||
logger.info("Config called");
|
||||
return ConfigResource.class.getResourceAsStream("config.json");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user