From fc9831d79fd636a5a2699b1390bd7073a593e13b Mon Sep 17 00:00:00 2001 From: Thorsten Marx Date: Tue, 19 Nov 2024 20:14:39 +0100 Subject: [PATCH] fix handler --- .../condation/cms/server/handler/http/RoutesHandler.java | 3 +-- .../com/condation/cms/modules/system/ApiEndpoints.java | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 modules/system-modules/src/main/java/com/condation/cms/modules/system/ApiEndpoints.java diff --git a/cms-server/src/main/java/com/condation/cms/server/handler/http/RoutesHandler.java b/cms-server/src/main/java/com/condation/cms/server/handler/http/RoutesHandler.java index 51806962..2171ded6 100644 --- a/cms-server/src/main/java/com/condation/cms/server/handler/http/RoutesHandler.java +++ b/cms-server/src/main/java/com/condation/cms/server/handler/http/RoutesHandler.java @@ -63,8 +63,7 @@ public boolean handle(Request request, Response response, Callback callback) thr return true; } - Response.writeError(request, response, callback, 404); - return true; + return false; } catch (Exception e) { log.error(null, e); callback.failed(e); diff --git a/modules/system-modules/src/main/java/com/condation/cms/modules/system/ApiEndpoints.java b/modules/system-modules/src/main/java/com/condation/cms/modules/system/ApiEndpoints.java new file mode 100644 index 00000000..6b0bf651 --- /dev/null +++ b/modules/system-modules/src/main/java/com/condation/cms/modules/system/ApiEndpoints.java @@ -0,0 +1,9 @@ +package com.condation.cms.modules.system; + +/** + * + * @author thmar + */ +public class ApiEndpoints { + +}