moved doOptions to BaseHandler, so implementing it in each module is no longer required
This commit is contained in:
@@ -160,13 +160,6 @@ public class DocumentApi extends BaseHandler {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean doOptions(Path path, HttpExchange ex) throws IOException {
|
||||
return sendEmptyResponse(HTTP_OK,addCors(ex));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doPatch(Path path, HttpExchange ex) throws IOException {
|
||||
addCors(ex);
|
||||
|
||||
Reference in New Issue
Block a user