Fastify Fruits Example
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, node.js
Research direction
Start with app/api/fruits.mjs and compare the /fruits and /api/fruits entry points described in the report. Run the Fastify fruits example and trace why /api/fruits is not found and /fruits is blank; done means both routes return the expected fruit output.
Written by the indexing model from the issue text.
Description
Hi,
I'm testing your Enchance docs using your fruits example
I modified app/api/fruits.mjs but no enpont gives results
export async function get (req) {
let fruits = ['apple','banana','pears']
return {
json: { fruits }
}
}
http://localhost:3000/ works
http://localhost:3000/about works
http://localhost:3000/fruits shows a blank page
http://localhost:3000/api/fruits
Oops, something went wrong
/api/fruits not found
Curious to know what I'm doing wrong.
I have some rich examples using fastify and htmx and evaluating this repo for comparison
TIA
John
node 16.15.0 on windows 10 home
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from enhance-dev/fastify-plugin
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Error in package exportsMay be free again @tbeseda claimed this 1375 days ago, and no pull request is open. Open
enhance-dev/fastify-plugin#3 · 1 comment · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
All issues in enhance-dev/fastify-plugin
Similar issues
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
anoopcodehack/DevBoard#609 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
openai/codex-plugin-cc#813 ·
-
area: ops type: test
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
accensa/x402-facilitator-stellar#559 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bilawalsidhu/gods-eye-view#1060 ·
Maintainers usually reply within 1 day
-
Progress difficulty filter lists Hard before MediumPossibly taken @Pandamachi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sysprog21/codetrial#281 · 1 comment ·
Maintainers usually reply within 1 day