Mount servlets under /servlet path
This commit is contained in:
parent
de2c2aeaea
commit
3491c979e2
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ class Twenty::Command::Up < Twenty::Command
|
||||||
|
|
||||||
def run_command
|
def run_command
|
||||||
server = WEBrick::HTTPServer.new(server_options)
|
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 }
|
trap(:SIGINT) { server.shutdown }
|
||||||
server.start
|
server.start
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue