def home(): response = Code.index() return res.success(response)
def detail(): url = request.args.get('url') response = Code.detail(url) return res.success(response)
def search(): param = request.args.get('q') response = Code.search(param) return res.success(response)
def hiburan(): response = Code.hiburan() return res.success(response)
def social(): response = Code.social() return res.success(response)
def teknologi(): response = Code.teknologi() return res.success(response)
def olahraga(): response = Code.olahraga() return res.success(response)
def ekonomi(): response = Code.ekonomi() return res.success(response)
def internasional(): response = Code.internasional() return res.success(response)
def nasional(): response = Code.nasional() return res.success(response)