lib/osso/routes/admin.rb in osso-0.0.11 vs lib/osso/routes/admin.rb in osso-0.1.0
- old
+ new
@@ -7,11 +7,11 @@
module Osso
class Admin < Roda
DB = Sequel.postgres(extensions: :activerecord_connection)
use Rack::Session::Cookie, secret: ENV.fetch('SESSION_SECRET')
-
+
plugin :json
plugin :middleware
plugin :render, engine: 'erb', views: ENV['RODAUTH_VIEWS'] || DEFAULT_VIEWS_DIR
plugin :route_csrf
@@ -62,10 +62,10 @@
def current_account
Osso::Models::Account.find(
rodauth.
session.
to_hash.
- stringify_keys['account_id']
+ stringify_keys['account_id'],
).context.
merge({ rodauth: rodauth })
end
r.on 'admin' do