我們使用koa-joi-router這個套件驗證傳進來的資料,同時使用supertest做測試。 ... 假如API傳進來的資料為form data,則validate的type設定要改為form ...
確定! 回上一頁