Skip to content

Route URL case sensitivity #687

@frodoe7

Description

@frodoe7

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

I used Fastify CLI generate command to create the project

in my routes folder /Auth/index.ts
that is interpreted as route as /Auth
I need it to be /auth instead of /Auth

I need to keep the URL routes in lowercase and the folders in uppercase

What I reached to from research is to use
caseSensitive prop in Fastify config

however it did not work with the generated CLI project
looks, there's no typing support for it

Screenshot 2023-12-30 at 7 43 36 PM

the response is {"message":"Route GET:/auth not found","error":"Not Found","statusCode":404}

have to be /Auth only

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions