add debug page
This commit is contained in:
parent
8d6882ebfe
commit
feb758da5f
11
app.moon
11
app.moon
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue