docs: Adds new index page and design tweaks (#833)
This commit is contained in:
1 parent
f387b4919f
commit
0380cdf0b2
17 files changed
+305
-119
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user