docs: Adds new index page and design tweaks (#833)

This commit is contained in:
Oliver Windall Juhl
2021-11-22 17:01:18 +01:00
committed by GitHub
parent f387b4919f
commit 0380cdf0b2
17 changed files with 305 additions and 119 deletions
@@ -27,7 +27,7 @@ import { validator } from "../../../../utils/validator"
* $ref: "#/components/schemas/customer"
*/
export default async (req, res) => {
const validated = await validator(AdminPostCustomersReq, req.bodyn)
const validated = await validator(AdminPostCustomersReq, req.body)
const customerService: CustomerService = req.scope.resolve("customerService")
const customer = await customerService.create(validated)