cruxx commited on
Commit
eba57a7
·
verified ·
1 Parent(s): b09f1a4

change yt-search results

Browse files
Files changed (1) hide show
  1. routes/youtube/index.js +2 -4
routes/youtube/index.js CHANGED
@@ -41,7 +41,7 @@ const handleSearch = async (ctx) => {
41
 
42
  return {
43
  success: true,
44
- data: result
45
  }
46
  }
47
 
@@ -79,9 +79,7 @@ const schemaJSON = {
79
  }
80
 
81
  export default (app) => app
82
- .group('', {
83
- detail: { tags: ['youtube'] }
84
- }, (app) => app
85
  .get('', handleSearchAndDownload, { query: schemaJSON.search })
86
  .post('', handleSearchAndDownload, { body: schemaJSON.search })
87
  .get('/download', handleDownload, { query: schemaJSON.download })
 
41
 
42
  return {
43
  success: true,
44
+ data: result.all
45
  }
46
  }
47
 
 
79
  }
80
 
81
  export default (app) => app
82
+ .group('', { detail: { tags: ['YouTube'] } }, (app) => app
 
 
83
  .get('', handleSearchAndDownload, { query: schemaJSON.search })
84
  .post('', handleSearchAndDownload, { body: schemaJSON.search })
85
  .get('/download', handleDownload, { query: schemaJSON.download })