@@ -59,18 +59,8 @@ class FeedsController < ApplicationController | |||||
end | end | ||||
end | end | ||||
# DELETE /feeds/1 | |||||
# DELETE /feeds/1.json | |||||
# def destroy | |||||
# @feed = Feed.find(params[:id]) | |||||
# @feed.destroy | |||||
# | |||||
# respond_to do |format| | |||||
# format.html { redirect_to feeds_url, notice: 'Feed deleted OK' } | |||||
# format.json { head :no_content } | |||||
# end | |||||
# end | |||||
# Feeds are never deleted. They're always retained in the DB. | |||||
def fetch | def fetch | ||||
@feed = Feed.find(params[:id]) | @feed = Feed.find(params[:id]) | ||||
@feed.fetch | @feed.fetch | ||||
@@ -2,12 +2,7 @@ Apollo::Application.routes.draw do | |||||
get "logout" => "sessions#destroy", :as => "logout" | get "logout" => "sessions#destroy", :as => "logout" | ||||
get "login" => "sessions#new", :as => "login" | get "login" => "sessions#new", :as => "login" | ||||
resources :layers do | |||||
member do | |||||
delete "delete_feed" | |||||
end | |||||
end | |||||
resources :layers | |||||
resources :users | resources :users | ||||
resources :sessions | resources :sessions | ||||
resources :password_resets | resources :password_resets | ||||