add debug page

This commit is contained in:
Sam Dodrill 2015-01-09 18:52:53 -08:00
parent 8d6882ebfe
commit feb758da5f
1 changed files with 11 additions and 0 deletions

View File

@ -18,3 +18,14 @@ class App extends lapis.Application
[index: "/"]: =>
@name = @session.name
render: true
"/debug": =>
@html ->
config = require("lapis.config").get!
p config.port
p config.postgres.port
p config.postgres.host
p config.postgres.user
p config.postgres.password
p config.postgres.database