Skip to content

Commit

Permalink
update: index v1
Browse files Browse the repository at this point in the history
  • Loading branch information
azharimm committed Sep 4, 2021
1 parent 31389b2 commit 6894bab
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,6 @@ exports.index = (req, res) => {
return json(res, {
maintainer: 'Azhari Muhammad M <[email protected]>',
source: 'https://github.com/azharimm/phone-specs-api',
list_brands: {
endpoint: '/brands',
example: fullUrl+'brands'
},
list_phones: {
endpoint: '/brands/{brand_slug}',
example: fullUrl+'brands/samsung'
},
phone_specs: {
endpoint: '/brands/{brand_slug}/{phone_slug}',
example: fullUrl+'brands/samsung/galaxy-note20-ultra-5g'
},
search: {
endpoint: '/search',
example: fullUrl+'search?query=Galaxy Note'
},
scrape: {
endpoint: '/scrape',
example: fullUrl+'scrape?url=https://www.gsmarena.com/samsung_galaxy_tab_s7+-10336.php'
}
v2: fullUrl+'v2'
})
}

0 comments on commit 6894bab

Please sign in to comment.