Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing different route access for cheerio #20

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

dhino12
Copy link

@dhino12 dhino12 commented Feb 7, 2023

Fixing Route

  • Mengubah semua penyebab data array kosong, dikarenakan semua query seperti $().find('#somthingElse') pada file controller/index.js salah, baseUrl utama yaitu https://www.masakapahariini.com/ mengubah semua tampilan, elemen, bahkan route untuk mempercantik website miliknya.

Simple code

  • Menyederhanakan beberapa function lebih simple, dan dapat dipakai berulang

Note, mungkin sebaiknya membuat, contoh struktur hasil response JSON, agar tidak mempengaruhi aplikasi lain ketika menggunakan API ini, seperti

{
"method": "GET",
"status": true,
"results": [
    {
    "category": "resep dessert",
    "url": "https://www.masakapahariini.com/resep/resep-dessert/",
    "key": "resep-dessert"
    },
  ]
}

Hasil maintenance

https://resep-hari-ini.vercel.app//

Thanks you..

@vercel
Copy link

vercel bot commented Feb 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
masak-apa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:24pm
masak-apa-7p1x ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:24pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant