Merge branch 'dev' into module/company
This commit is contained in:
@@ -7,6 +7,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import com.sun.net.httpserver.HttpExchange;
|
||||
import de.srsoftware.tools.Path;
|
||||
import de.srsoftware.tools.PathHandler;
|
||||
import de.srsoftware.umbrella.core.ModuleRegistry;
|
||||
import de.srsoftware.umbrella.core.api.Translator;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -20,6 +21,10 @@ public class Translations extends PathHandler implements Translator {
|
||||
|
||||
private HashMap<String, JSONObject> translations = new HashMap<>();
|
||||
|
||||
public Translations(ModuleRegistry registry) {
|
||||
registry.add(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doGet(Path path, HttpExchange ex) throws IOException {
|
||||
allowOrigin(ex,"*");
|
||||
|
||||
Reference in New Issue
Block a user