From 3491c979e2e8650d5b58ae1bcd6c355d78580ab1 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Tue, 19 Dec 2023 23:09:44 -0300 Subject: [PATCH] Mount servlets under /servlet path --- twenty-cli/lib/twenty-cli/command/up.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twenty-cli/lib/twenty-cli/command/up.rb b/twenty-cli/lib/twenty-cli/command/up.rb index 1057ebc..bcdf7b0 100644 --- a/twenty-cli/lib/twenty-cli/command/up.rb +++ b/twenty-cli/lib/twenty-cli/command/up.rb @@ -11,7 +11,8 @@ class Twenty::Command::Up < Twenty::Command def run_command server = WEBrick::HTTPServer.new(server_options) - server.mount '/connections.json', Twenty::Servlet::Connections + server.mount '/servlet/connections', Twenty::Servlet::Connections + server.mount '/servlet/issues', Twenty::Servlet::Issues trap(:SIGINT) { server.shutdown } server.start end