2015-01-05 21:41:19 +00:00
|
|
|
lapis = require "lapis"
|
|
|
|
|
2015-01-08 21:21:26 +00:00
|
|
|
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"
|
2015-01-07 21:25:38 +00:00
|
|
|
@include "controllers.freeswitch"
|
2015-01-07 21:21:05 +00:00
|
|
|
|
2015-01-08 21:21:26 +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
|