lib/osso/routes/admin.rb in osso-0.0.3.2 vs lib/osso/routes/admin.rb in osso-0.0.3.3
- old
+ new
@@ -12,20 +12,24 @@
end
get '/' do
admin_protected!
- erb :admin
+ erb :'public/index'
end
get '/enterprise' do
admin_protected!
erb :admin
end
get '/enterprise/:domain' do
enterprise_protected!(params[:domain])
+
+ @enterprise = Models::EnterpriseAccount.where(
+ domain: params[:domain],
+ ).first_or_create
erb :admin
end
get '/config' do