url fix for announcements...
This commit is contained in:
parent
497dc63351
commit
e21bbac441
|
@ -1,5 +1,5 @@
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
class Admin::BulletinsController < ApplicationController
|
class BulletinsController < ApplicationController
|
||||||
before_filter :set_I18n
|
before_filter :set_I18n
|
||||||
|
|
||||||
def get_bulletins
|
def get_bulletins
|
|
@ -10,7 +10,6 @@ Rails.application.routes.draw do
|
||||||
delete 'announcement/deletefeed', to: 'announcements#deletefeed'
|
delete 'announcement/deletefeed', to: 'announcements#deletefeed'
|
||||||
get 'announcement/destroy_preview/:slug_title-:uid', to: 'announcements#destroy_preview'
|
get 'announcement/destroy_preview/:slug_title-:uid', to: 'announcements#destroy_preview'
|
||||||
get 'announcement/approve_bulletin', to: 'announcements#approve_bulletin'
|
get 'announcement/approve_bulletin', to: 'announcements#approve_bulletin'
|
||||||
get 'announcement.json', to: 'bulletins#get_bulletins'
|
|
||||||
get 'announcement/feed', to: 'announcements#feed'
|
get 'announcement/feed', to: 'announcements#feed'
|
||||||
get 'announcements/feedform', to: 'announcements#feedform'
|
get 'announcements/feedform', to: 'announcements#feedform'
|
||||||
resources :announcements
|
resources :announcements
|
||||||
|
@ -25,6 +24,8 @@ Rails.application.routes.draw do
|
||||||
get "/xhr/announcements/feed/:uid" => "announcement_feeds#feed"
|
get "/xhr/announcements/feed/:uid" => "announcement_feeds#feed"
|
||||||
get "/xhr/announcements/rssfeed/:uid" => "announcement_feeds#rssfeed"
|
get "/xhr/announcements/rssfeed/:uid" => "announcement_feeds#rssfeed"
|
||||||
get "/xhr/announcements/feeds" => "announcement_feeds#feeds"
|
get "/xhr/announcements/feeds" => "announcement_feeds#feeds"
|
||||||
|
get '/xhr/announcements/announcement.json', to: 'bulletins#get_bulletins'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue