mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
gf -server: include grammar modification time in the info returned by /version
This commit is contained in:
@@ -162,8 +162,10 @@ handle logLn documentroot state0 cache execute1 stateVar
|
||||
-- "/start" ->
|
||||
"/parse" -> parse (decoded qs)
|
||||
"/version" -> do (c1,c2) <- PS.listPGFCache cache
|
||||
let rel = map (makeRelative documentroot)
|
||||
return $ ok200 (unlines (gf_version:"":rel c1++"":rel c2))
|
||||
let rel = makeRelative documentroot
|
||||
sh1 (path,t) = rel path++" "++show t
|
||||
sh = map sh1
|
||||
return $ ok200 (unlines (gf_version:"":sh c1++"":sh c2))
|
||||
"/flush" -> do PS.flushPGFCache cache; return (ok200 "flushed")
|
||||
'/':rpath ->
|
||||
-- This code runs without mutual exclusion, so it must *not*
|
||||
|
||||
Reference in New Issue
Block a user