From 8f43171edf8f858522aca13d90dde5f4ce09b87a Mon Sep 17 00:00:00 2001 From: Thorsten Date: Mon, 17 Nov 2014 13:04:34 +0100 Subject: [PATCH] Admin Interface + Added the static files and the framework handlers also to the admin's interface --- System/InitHandlers.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/System/InitHandlers.go b/System/InitHandlers.go index c397268..0fea924 100644 --- a/System/InitHandlers.go +++ b/System/InitHandlers.go @@ -17,12 +17,19 @@ func InitHandlers() { initSystem() Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `Register now all system handlers.`) + // Public Handlers: Handlers.AddPublicHandler(`/framework/`, WebContent.HandlerDeliverFramework) Handlers.AddPublicHandler(`/staticFiles/`, StaticFiles.HandlerStaticFiles) Handlers.AddPublicHandler(`/next/number`, NumGen.HandlerGetNext) Handlers.AddPublicHandler(`/robots.txt`, Robots.HandlerRobots) Handlers.AddPublicHandler(`/ICCC`, ICCC.ICCCHandler) + // Private Handlers: + Handlers.AddAdminHandler(`/framework/`, WebContent.HandlerDeliverFramework) + Handlers.AddAdminHandler(`/staticFiles/`, StaticFiles.HandlerStaticFiles) + Handlers.AddAdminHandler(`/next/number`, NumGen.HandlerGetNext) + Handlers.AddAdminHandler(`/ICCC`, ICCC.ICCCHandler) + if ConfigurationDB.Read(`MapStaticFiles2Root`) == "true" { Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `The static files are mapped to the root.`) Handlers.AddPublicHandler(`/`, StaticFiles.HandlerMapStaticFiles2Root)