路由設計

  1. 取得所有消息: /news/

DB.json

{
  "news": [
    {
      "title": "hello~",
      "content": "<h2>副標題</h2><p class='color'>今天要刷牙</p>",
      "timeStamp": 1668002802380,
      "id": 5
    }
  ]
}

課程

  1. get、patch、delete
  2. 轉 timestamp :+new Date()