Change the URL /worldview to /worldview/<region id> to support multiregion
parent
752b6a8764
commit
623f57deb5
|
@ -81,7 +81,8 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
|
||||||
m_log.Info("[WORLDVIEW]: Configured and enabled");
|
m_log.Info("[WORLDVIEW]: Configured and enabled");
|
||||||
|
|
||||||
IHttpServer server = MainServer.GetHttpServer(0);
|
IHttpServer server = MainServer.GetHttpServer(0);
|
||||||
server.AddStreamHandler(new WorldViewRequestHandler(this));
|
server.AddStreamHandler(new WorldViewRequestHandler(this,
|
||||||
|
scene.RegionInfo.RegionID.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveRegion(Scene scene)
|
public void RemoveRegion(Scene scene)
|
||||||
|
|
|
@ -49,8 +49,8 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
|
||||||
protected WorldViewModule m_WorldViewModule;
|
protected WorldViewModule m_WorldViewModule;
|
||||||
protected Object m_RequestLock = new Object();
|
protected Object m_RequestLock = new Object();
|
||||||
|
|
||||||
public WorldViewRequestHandler(WorldViewModule fmodule)
|
public WorldViewRequestHandler(WorldViewModule fmodule, string rid)
|
||||||
: base("POST", "/worldview")
|
: base("POST", "/worldview/" + rid)
|
||||||
{
|
{
|
||||||
m_WorldViewModule = fmodule;
|
m_WorldViewModule = fmodule;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue