Updated routes for admins dashboard
• Updated: - routes for admins dashboard (expenses, group categories, promotions, trending hashtags) that were in the /settings path but are now in the /admin path - /filters to be in /settings/filters • Removed: - authorize_follow route
This commit is contained in:
11
app/controllers/admin/expenses_controller.rb
Normal file
11
app/controllers/admin/expenses_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Admin::ExpensesController < Admin::BaseController
|
||||
def index
|
||||
@amount = Redis.current.get("monthly_funding_amount") || 0
|
||||
end
|
||||
|
||||
def create
|
||||
Redis.current.set("monthly_funding_amount", params[:amount])
|
||||
redirect_to admin_expenses_path
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user