diff --git a/app/controllers/qbo_controller.rb b/app/controllers/qbo_controller.rb
index ebed4f9..fd9e625 100644
--- a/app/controllers/qbo_controller.rb
+++ b/app/controllers/qbo_controller.rb
@@ -22,18 +22,6 @@ class QboController < ApplicationController
params.permit(:code, :state, :realmId, :id)
end
- #
- # Called when the QBO Top Menu us shown
- #
- def index
- @qbo = Qbo.first
- @customer_count = Customer.count
- @item_count = QboItem.count
- @employee_count = Employee.count
- @invoice_count = Invoice.count
- @estimate_count = Estimate.count
- end
-
#
# Called when the user requests that Redmine to connect to QBO
#
diff --git a/app/views/qbo/index.html.erb b/app/views/qbo/index.html.erb
deleted file mode 100644
index 58deb89..0000000
--- a/app/views/qbo/index.html.erb
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- <%=t(:label_redmine_qbo)%>
-
-
- <%=t(:label_customer_count)%>: <%= @customer_count.to_s%>
-
-
-
- <%=t(:label_item_count)%>: <%= @item_count.to_s %>
-
-
-
- <%=t(:label_employee_count)%>: <%= @employee_count.to_s %>
-
-
-
- <%=t(:label_invoice_count)%>: <%= @invoice_count.to_s %>
-
-
-
- <%=t(:label_estimate_count)%>: <%= @estimate_count.to_s %>
-
-
-
-
-
- <%=t(:label_last_sync)%>: <%= Qbo.last_sync if Qbo.exists? %>
-
-
-
diff --git a/app/views/qbo/sync.html.erb b/app/views/qbo/sync.html.erb
deleted file mode 100644
index 75d4b14..0000000
--- a/app/views/qbo/sync.html.erb
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
- QboController#sync
-
-
diff --git a/config/routes.rb b/config/routes.rb
index 87c3503..9134c3d 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -8,9 +8,6 @@
#
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-# Main Quickbooks landing page
-get 'qbo', :to=> 'qbo#index'
-
#authentication
get 'qbo/authenticate', :to => 'qbo#authenticate'
get 'qbo/oauth_callback', :to => 'qbo#oauth_callback'
@@ -18,6 +15,9 @@ get 'qbo/oauth_callback', :to => 'qbo#oauth_callback'
#manual sync
get 'qbo/sync', :to => 'qbo#sync'
+#webhook
+post 'qbo/webhook', :to => 'qbo#webhook'
+
# Estimate & Invoice PDF
get 'estimates/:id', :to => 'estimate#show', as: :estimate
get 'estimates/doc/:id', :to => 'estimate#doc', as: :estimate_doc
@@ -30,9 +30,6 @@ get 'bill/:id', :to => 'qbo#bill', as: :bill
get 'customers/view/:token', :to => 'customers#view', as: :view
get 'customers/share/:id', :to => 'customers#share', as: :share
-#webhook
-post 'qbo/webhook', :to => 'qbo#webhook'
-
#java script routes
get 'filter_vehicles_by_customer' => 'customers#filter_vehicles_by_customer'
get 'filter_estimates_by_customer' => 'customers#filter_estimates_by_customer'