panel/app.moon

19 lines
356 B
Plaintext

lapis = require "lapis"
require "models.user"
class App extends lapis.Application
@include "controllers.users"
@include "controllers.freeswitch"
@before_filter =>
@current_user = Users\read_session @
if @session.flash
@flash = @session.flash
@session.flash = nil
[index: "/"]: =>
@user = @session.user
render: true