moved doOptions to BaseHandler, so implementing it in each module is no longer required

This commit is contained in:
2025-08-07 15:42:31 +02:00
parent a450ef97b8
commit ddd947b886
7 changed files with 5 additions and 36 deletions

View File

@@ -34,6 +34,11 @@ public abstract class BaseHandler extends PathHandler {
return ex;
}
@Override
public boolean doOptions(Path path, HttpExchange ex) throws IOException {
return ok(addCors(ex));
}
public boolean load(Path path, HttpExchange ex) throws IOException {
try {
var doc = load(path.toString());