Mount servlets under /servlet path

This commit is contained in:
0x1eef 2023-12-19 23:09:44 -03:00
parent de2c2aeaea
commit 3491c979e2

View file

@ -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