nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbc3309
)
nitweb: use ConsoleLog middleware
author
Alexandre Terrasa
<alexandre@moz-code.org>
Wed, 25 May 2016 03:58:18 +0000
(23:58 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 6 Jun 2016 13:15:05 +0000
(09:15 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/nitweb.nit
patch
|
blob
|
history
diff --git
a/src/nitweb.nit
b/src/nitweb.nit
index
93d15aa
..
c18c740
100644
(file)
--- a/
src/nitweb.nit
+++ b/
src/nitweb.nit
@@
-49,9
+49,11
@@
private class NitwebPhase
var app = new App
+ app.use_before("/*", new RequestClock)
app.use("/api", new APIRouter(model, modelbuilder, mainmodule))
app.use("/doc/:namespace", new DocAction(model, mainmodule, modelbuilder))
app.use("/*", new StaticHandler(toolcontext.share_dir / "nitweb", "index.html"))
+ app.use_after("/*", new ConsoleLog)
app.listen(host, port.to_i)
end