move hot keyword api out weapp

problem_set
p31729568 5 years ago
parent cb8dd3dc9f
commit aa9570d4f3

@ -1,4 +1,4 @@
class Weapps::HotKeywordsController < Weapps::BaseController
class HotKeywordsController < ApplicationController
def index
keywords = []
keywords = HotSearchKeyword.hot(8) if HotSearchKeyword.available?

@ -846,6 +846,8 @@ Rails.application.routes.draw do
get '/auth/wechat/callback', to: 'oauth/wechat#create'
resource :bind_user, only: [:create]
resources :hot_keywords, only: [:index]
namespace :weapps do
resource :home, only: [:show]
resource :session, only: [:create]
@ -854,7 +856,6 @@ Rails.application.routes.draw do
resource :verify, only: [:create]
resources :searchs, only: [:index]
resources :hot_keywords, only: [:index]
end
end

Loading…
Cancel
Save