Skip to content

Latest commit

 

History

History
47 lines (47 loc) · 1.04 KB

endpoints.md

File metadata and controls

47 lines (47 loc) · 1.04 KB

[ { path: '/api/user', methods: [ 'POST' ], middlewares: [ 'asyncUtilWrap' ] }, { path: '/api/user/validate', methods: [ 'POST' ], middlewares: [ 'otpValidator', 'asyncUtilWrap' ] }, { path: '/api/user/login', methods: [ 'POST' ], middlewares: [ 'asyncUtilWrap' ] }, { path: '/api/products/category', methods: [ 'GET' ], middlewares: [ 'asyncUtilWrap' ] }, { path: '/api/products', methods: [ 'POST', 'GET' ], middlewares: [ 'asyncUtilWrap', 'asyncUtilWrap', 'asyncUtilWrap' ] }, { path: '/api/products/:id', methods: [ 'PATCH' ], middlewares: [ 'asyncUtilWrap', 'asyncUtilWrap' ] }, { path: '/api/products/delete/:id', methods: [ 'DELETE' ], middlewares: [ 'asyncUtilWrap', 'asyncUtilWrap' ] }, { path: '/api/myOrder', methods: [ 'GET' ], middlewares: [ 'asyncUtilWrap', 'asyncUtilWrap' ] }, { path: '/api/category', methods: [ 'POST', 'GET' ], middlewares: [ 'asyncUtilWrap', 'asyncUtilWrap', 'asyncUtilWrap' ] } ]