Creates all (?) endpoints

This commit is contained in:
Guillaume Tâche
2025-04-21 22:10:24 +02:00
commit 8a05f63687
263 changed files with 4821 additions and 0 deletions

View File

@@ -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");
}
}