Fixed hardcoded RPC path
This commit is contained in:
		
							parent
							
								
									7f07cf5b71
								
							
						
					
					
						commit
						ea8cb93904
					
				|  | @ -7,7 +7,7 @@ function log() { | |||
| 
 | ||||
| function testMain() { | ||||
|     log("Starting."); | ||||
|     var testService = new JsonRpcService(document.location + "rpc/test", onReady); | ||||
|     var testService = new JsonRpcService("/rpc/test", onReady); | ||||
|     function onReady() { | ||||
| 	testService.test_proc("Hello, world!").addCallback(log); | ||||
|     } | ||||
|  |  | |||
|  | @ -30,8 +30,7 @@ loop(Req, DocRoot) -> | |||
|                     Req:serve_file(Path, DocRoot) | ||||
|             end; | ||||
|         'POST' -> | ||||
|             %% TODO The path is hard coded to handle mod_http_test | ||||
|             case rfc4627_jsonrpc_mochiweb:handle("/mod_http_test/rpc", Req) of | ||||
|             case rfc4627_jsonrpc_mochiweb:handle("/rpc", Req) of | ||||
|                  no_match -> | ||||
|                      io:format("PROCESSING REQUEST ~p~n",[Req]), | ||||
|                      Req:not_found(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue