fastify / fastify/help

fastify-autoload : How to automatically configures routes matching the folder structure ??

Open
#682 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
68
Forks
8
Avg merge
11h 2m
Merged PRs (30d)
2

Description

I follow official guides `fastify generate myproject` and add a file `hello.js` in folder `routes`:
```
module.exports = async () => 'Hello, Index2!'
```
I expect when I visit `localhost:3000/hello` will get `Hello, Index2!` response. But only get a 404 response.
What does `automatically configures routes matching the folder structure` mean ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.