Skip to content

proposal: replace .json with /api route #93

Description

@gameroman

Currently to get data for a package as JSON, you need to add .json to the end of a package name, for example https://replacements.fyi/is-number.json

I propose to change the route to /api/is-number, or /api?package=is-number, or something similar

The main reasons is when a package does not exist (for example https://replacements.fyi/nuxt.json), an html 404 page is returned instead of structured JSON

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions