Skip to content

Is it possible to return this whole object at root URL? #1256

@hongbo-miao

Description

@hongbo-miao

First thanks for this tool. It is so convenient!

I have a db.json file like

{
  "posts": [
    { "id": 1, "title": "json-server", "author": "typicode" }
  ],
  "comments": [
    { "id": 1, "body": "some comment", "postId": 1 }
  ],
  "profile": { "name": "typicode" }
}

Currently, the root URL http://localhost:3000/ returns a static page.
Is there an option to return this whole object above at root URL?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions