Admin Interface
+ Added the static files and the framework handlers also to the admin's interface
This commit is contained in:
parent
da6c7b53c7
commit
8f43171edf
@ -17,12 +17,19 @@ func InitHandlers() {
|
|||||||
initSystem()
|
initSystem()
|
||||||
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `Register now all system handlers.`)
|
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `Register now all system handlers.`)
|
||||||
|
|
||||||
|
// Public Handlers:
|
||||||
Handlers.AddPublicHandler(`/framework/`, WebContent.HandlerDeliverFramework)
|
Handlers.AddPublicHandler(`/framework/`, WebContent.HandlerDeliverFramework)
|
||||||
Handlers.AddPublicHandler(`/staticFiles/`, StaticFiles.HandlerStaticFiles)
|
Handlers.AddPublicHandler(`/staticFiles/`, StaticFiles.HandlerStaticFiles)
|
||||||
Handlers.AddPublicHandler(`/next/number`, NumGen.HandlerGetNext)
|
Handlers.AddPublicHandler(`/next/number`, NumGen.HandlerGetNext)
|
||||||
Handlers.AddPublicHandler(`/robots.txt`, Robots.HandlerRobots)
|
Handlers.AddPublicHandler(`/robots.txt`, Robots.HandlerRobots)
|
||||||
Handlers.AddPublicHandler(`/ICCC`, ICCC.ICCCHandler)
|
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" {
|
if ConfigurationDB.Read(`MapStaticFiles2Root`) == "true" {
|
||||||
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `The static files are mapped to the root.`)
|
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `The static files are mapped to the root.`)
|
||||||
Handlers.AddPublicHandler(`/`, StaticFiles.HandlerMapStaticFiles2Root)
|
Handlers.AddPublicHandler(`/`, StaticFiles.HandlerMapStaticFiles2Root)
|
||||||
|
Loading…
Reference in New Issue
Block a user