Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft mybrand ci #7

Merged
merged 6 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
editing bug fixing
  • Loading branch information
amiparadis250 committed Mar 8, 2024
commit 26d6af59f5b3d766d5fe07dd66d73d2bf96659e2
2 changes: 1 addition & 1 deletion src/routes/blogRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ router.post('/', upload.single('file'),isLogin,isAdmin, async (req:any, res) =>
});

// Update a blog by ID
router.patch('/:id', upload.single('file'),isLogin,isAdmin, async (req:any, res) => {
router.put('/:id', upload.single('file'),isLogin,isAdmin, async (req:any, res) => {
try {
// Validate request body
const { error } = updateBlogValidation.validate(req.body);
Expand Down
2 changes: 1 addition & 1 deletion src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@
}
}
},
"patch": {
"put": {
"summary": "Update a blog",
"tags": ["Blogs"],
"parameters": [
Expand Down