Change the URL /worldview to /worldview/<region id> to support multiregion

viewer-2-initial-appearance
Melanie 2010-10-06 03:51:55 +01:00
parent 752b6a8764
commit 623f57deb5
2 changed files with 4 additions and 3 deletions

View File

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

View File

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