Remove wrong route

openid
Micha Wrobel 13 years ago
parent a2d1b1a15f
commit 5ad02c8610

@ -1,7 +1,7 @@
class CommentsController < ApplicationController
class Api::CommentsController < ApplicationController
respond_to :json
before_filter :ensure_authenticated!, :only => [:create, :update, :destroy]
before_filter :ensure_authenticated!, :only => [:create, :destroy]
before_filter :load_asciicast, :only => [:index, :create]
def index

@ -1,5 +1,4 @@
AsciiIo::Application.routes.draw do
resources :comments
resources :asciicasts
match ':id' => 'asciicasts#show', :constraints => { :id => /\d+/ }

@ -1,6 +1,6 @@
require 'spec_helper'
describe CommentsController do
describe Api::CommentsController do
let(:user) { Factory(:user) }
let(:asciicast) { mock_model(Asciicast) }
Loading…
Cancel
Save