Skip to content

404 when access Home #753

@ghost

Description

When I access http://localhost:3000 It just show

{}

and show GET / 404 0.395 ms - 2 in terminal.
Please help me, I want to get the full db.json content.

I try this tool with those steps:

  1. create db.json with
{
  "posts": [
    {
      "id": 1,
      "title": "json-server",
      "author": "typicode"
    }
  ],
  "comments": [
    {
      "id": 1,
      "body": "some comment",
      "postId": 1
    }
  ],
  "profile": {
    "name": "typicode"
  }
}
  1. run json-server --watch ~/Desktop/AdJson/db.json
    show message is

  \{^_^}/ hi!

  Loading /Users/z/Desktop/AdJson/db.json
  Done

  Resources
  http://localhost:3000/posts
  http://localhost:3000/comments
  http://localhost:3000/profile

  Home
  http://localhost:3000

  Type s + enter at any time to create a snapshot of the database
  Watching...

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