Sha256: 2969fd72ae46943189779b320661d3993069c6ea03fd7a70561ef7d535c0cb7e

Contents?: true

Size: 1.63 KB

Versions: 2

Compression:

Stored size: 1.63 KB

Contents

EricWeixin::Engine.routes.draw do
  get "/weixin/service/:app_id" => "wz/weixin#index"
  post "/weixin/service/:app_id" => "wz/weixin#reply"
  get "/weixin/service1/ddd" => "wz/weixin#aa"
  get "/weixin/snsapi" => "wz/weixin#snsapi_api"
  get "/weixin/snsuserinfo" => "wz/weixin#snsapi_userinfo"

  get "/weixin/pay" => "wz/pays#prepay"

  namespace :cms do
    namespace :weixin do
      namespace :xiaodian do
        resources :orders do
          collection do
            post :save_delivery_info
            get :download_orders
          end
        end
        resources :products do
          collection do
            get :get_all_products
          end
        end
      end
      resources :public_accounts do
        member do
          get :rebuild_weixin_users
          get :export
          post :create_menu
        end
      end
      resources :weixin_users do
        member do
          post :modify_remark
        end
      end

      resources :article_datas
      resources :news_datas
      resources :users do
        member do
          post :modify_remark
        end
      end
      resources :reply_message_rules
      resources :two_dimension_codes
      resources :url_encodes
      resources :customs_service_records

      resources :media_resources
      resources :media_articles do
        collection do
          get :select_pic
        end
      end

      resources :media_news do
        collection do
          get :query_media_articles
          get :will_send_articles
          post :save_news
          post :preview
          post :send_news_now
          get :query_weixin_users
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eric_weixin-0.3.3 config/routes.rb
eric_weixin-0.3.2 config/routes.rb