panel/app.moon

19 lines
356 B
Plaintext
Raw Normal View History

2015-01-05 21:41:19 +00:00
lapis = require "lapis"
require "models.user"
2015-01-05 21:41:19 +00:00
class App extends lapis.Application
2015-01-07 21:21:05 +00:00
@include "controllers.users"
@include "controllers.freeswitch"
2015-01-07 21:21:05 +00:00
@before_filter =>
@current_user = Users\read_session @
if @session.flash
@flash = @session.flash
@session.flash = nil
2015-01-06 03:09:03 +00:00
[index: "/"]: =>
@user = @session.user
render: true