Admin Interface

+ Added the static files and the framework handlers also to the admin's
interface
This commit is contained in:
Thorsten 2014-11-17 13:04:34 +01:00
parent da6c7b53c7
commit 8f43171edf

View File

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