Commit 1f427e14 by Michael Brachmann

more route tweaks

parent 4e6d40f0
...@@ -68,10 +68,10 @@ var ...@@ -68,10 +68,10 @@ var
begin begin
// [Route('ws')] on IWebSocketService appends /ws — don't double it here.
Url := ABaseUrl; Url := ABaseUrl;
if not Url.EndsWith('/') then if not Url.EndsWith('/') then
Url := Url + '/'; Url := Url + '/';
Url := Url + SERVER_PATH_SEGMENT;
XDataServer1.BaseUrl := Url; XDataServer1.BaseUrl := Url;
XDataServer1.ModelName := AModelName; XDataServer1.ModelName := AModelName;
......
...@@ -9,7 +9,8 @@ const ...@@ -9,7 +9,8 @@ const
WS_MODEL = 'Ws'; WS_MODEL = 'Ws';
type type
[ServiceContract, Model(WS_MODEL), Route('')] [ServiceContract, Model(WS_MODEL)]
[Route('ws')]
IWebSocketService = interface(IInvokable) IWebSocketService = interface(IInvokable)
['{673FE678-D9EF-468D-89CB-CEF26E8758BC}'] ['{673FE678-D9EF-468D-89CB-CEF26E8758BC}']
[HttpGet, Route('emimobile')] [HttpGet, Route('emimobile')]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment