ita-social-projects / SpaceToStudy-BackEnd

MIT License
12 stars 5 forks source link

(SP: 2) Create owner middleware #897

Open YaroslavLys opened 2 months ago

YaroslavLys commented 2 months ago

Description

Create middleware that restricts the use of endpoint to the owner Write this middleware in middleware/auth.js file.