From dd5f4abdb9423dd767ccb1c8be310e40fdd1ad43 Mon Sep 17 00:00:00 2001 From: gareth Date: Fri, 13 Apr 2007 15:14:21 +0000 Subject: Fixed weird XML/HTTP bugs Can now update a sim profile at startup automatically! W00t! Untested neighbours code (for sim crossings) Didn't drink any red bull today :( Used liquid guarana extract + cola --- OpenGridServices.GridServer/Main.cs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'OpenGridServices.GridServer/Main.cs') diff --git a/OpenGridServices.GridServer/Main.cs b/OpenGridServices.GridServer/Main.cs index c69b6dc..55e2b00 100644 --- a/OpenGridServices.GridServer/Main.cs +++ b/OpenGridServices.GridServer/Main.cs @@ -47,20 +47,10 @@ namespace OpenGridServices.GridServer public class OpenGrid_Main : BaseServer, conscmd_callback { private string ConfigDll = "OpenGrid.Config.GridConfigDb4o.dll"; - private GridConfig Cfg; + public GridConfig Cfg; public static OpenGrid_Main thegrid; - public string GridOwner; - public string DefaultStartupMsg; - public string DefaultAssetServer; - public string AssetSendKey; - public string AssetRecvKey; - public string DefaultUserServer; - public string UserSendKey; - public string UserRecvKey; - public string SimSendKey; - public string SimRecvKey; //public LLUUID highestUUID; private SimProfileManager m_simProfileManager; @@ -109,10 +99,10 @@ namespace OpenGridServices.GridServer httpServer.AddXmlRPCHandler("simulator_login", m_simProfileManager.XmlRpcLoginToSimulatorMethod); - httpServer.AddRestHandler("GET", "/sims", m_simProfileManager.RestGetSimMethod); - httpServer.AddRestHandler("POST", "/sims", m_simProfileManager.RestSetSimMethod); - httpServer.AddRestHandler("GET", "/regions", m_simProfileManager.RestGetRegionMethod); - httpServer.AddRestHandler("POST", "/regions", m_simProfileManager.RestSetRegionMethod); + httpServer.AddRestHandler("GET", "/sims/", m_simProfileManager.RestGetSimMethod); + httpServer.AddRestHandler("POST", "/sims/", m_simProfileManager.RestSetSimMethod); + httpServer.AddRestHandler("GET", "/regions/", m_simProfileManager.RestGetRegionMethod); + httpServer.AddRestHandler("POST", "/regions/", m_simProfileManager.RestSetRegionMethod); // lbsa71 : This code snippet taken from old http server. -- cgit v1.1