Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Fastify Fruits Example

Open
#1 4 comments 1 reaction 0 assignees View on GitHub

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
Domain
api, backend

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from enhance-dev/fastify-plugin

All issues in enhance-dev/fastify-plugin

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.