|
|
@ -34,7 +34,7 @@ module Mobile
|
|
|
|
version 'v1', using: :path
|
|
|
|
version 'v1', using: :path
|
|
|
|
format :json
|
|
|
|
format :json
|
|
|
|
content_type :json, "application/json;charset=UTF-8"
|
|
|
|
content_type :json, "application/json;charset=UTF-8"
|
|
|
|
use ActionDispatch::Session::CookieStore, :expire_after => 8.hours, :key => '_educoder_session', :domain => :all
|
|
|
|
#use ActionDispatch::Session::CookieStore, :expire_after => 8.hours, :key => '_educoder_session', :domain => :all
|
|
|
|
|
|
|
|
|
|
|
|
require 'digest'
|
|
|
|
require 'digest'
|
|
|
|
use Mobile::Middleware::ErrorHandler
|
|
|
|
use Mobile::Middleware::ErrorHandler
|
|
|
|