removed register site controller
This commit is contained in:
parent
5d6319dfcc
commit
ce5b35239f
|
@ -1,10 +0,0 @@
|
|||
class Admin::RegisterSiteController < OrbitBackendController
|
||||
def index
|
||||
end
|
||||
|
||||
def register_site
|
||||
site = Site.first
|
||||
site.register_site
|
||||
redirect_to admin_module_store_path
|
||||
end
|
||||
end
|
|
@ -147,6 +147,11 @@ class Admin::SitesController < OrbitBackendController
|
|||
render :text => "success"
|
||||
end
|
||||
|
||||
def register_site
|
||||
@site.register_site
|
||||
redirect_to admin_module_store_path
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def update_design(design)
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<%= link_to "Register", register_site_admin_register_site_index_path, :class => "btn btn-primary"%>
|
|
@ -272,12 +272,6 @@ Orbit::Application.routes.draw do
|
|||
match 'template_store' => 'template_store#index'
|
||||
match 'template_store/download_theme' => "template_store#download_theme"
|
||||
match 'template_store/template/:id' => 'template_store#show', :as => :template_store_template
|
||||
|
||||
resources :register_site, only: [:index] do
|
||||
collection do
|
||||
post 'register_site'
|
||||
end
|
||||
end
|
||||
# match 'template_store/cool_method' => "template_store#cool_method"
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue