url fix for announcements...

This commit is contained in:
Harry Bomrah 2015-09-14 20:04:56 +08:00
parent 497dc63351
commit e21bbac441
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# encoding: utf-8
class Admin::BulletinsController < ApplicationController
class BulletinsController < ApplicationController
before_filter :set_I18n
def get_bulletins

View File

@ -10,7 +10,6 @@ Rails.application.routes.draw do
delete 'announcement/deletefeed', to: 'announcements#deletefeed'
get 'announcement/destroy_preview/:slug_title-:uid', to: 'announcements#destroy_preview'
get 'announcement/approve_bulletin', to: 'announcements#approve_bulletin'
get 'announcement.json', to: 'bulletins#get_bulletins'
get 'announcement/feed', to: 'announcements#feed'
get 'announcements/feedform', to: 'announcements#feedform'
resources :announcements
@ -25,6 +24,8 @@ Rails.application.routes.draw do
get "/xhr/announcements/feed/:uid" => "announcement_feeds#feed"
get "/xhr/announcements/rssfeed/:uid" => "announcement_feeds#rssfeed"
get "/xhr/announcements/feeds" => "announcement_feeds#feeds"
get '/xhr/announcements/announcement.json', to: 'bulletins#get_bulletins'
end
end