News: Cache-Buster für Bild-URLs, HEAD, Limiter-Feinschliff

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
knsoandClaude Opus 5.5 committed 2026-09-30 16:52:47 +00:00
1 parent 319f8937aa
commit a421308019
5 files changed
+57 -12

No files matched your search

+3 -3
View File
@@ -82,7 +82,7 @@ router.get('/', requireSession, withProject(), async (req, res) => {
}
})
router.post('/', requireSession, rejectViewAs, limitWrites, withProject(), async (req, res) => {
router.post('/', requireSession, rejectViewAs, withProject(), limitWrites, async (req, res) => {
try {
const post = await createPost({ customerId: getSessionCustomerId(req), projectId: req.projectId, input: req.body })
res.status(201).json(post)
@@ -131,7 +131,7 @@ router.get('/image/:projectId/:file', requireSession, async (req, res) => {
}
})
router.patch('/:id', requireSession, rejectViewAs, limitWrites, withProject(), async (req, res) => {
router.patch('/:id', requireSession, rejectViewAs, withProject(), limitWrites, async (req, res) => {
try {
const post = await updatePost({ customerId: getSessionCustomerId(req), projectId: req.projectId, id: req.params.id, input: req.body })
res.json(post)
@@ -140,7 +140,7 @@ router.patch('/:id', requireSession, rejectViewAs, limitWrites, withProject(), a
}
})
router.delete('/:id', requireSession, rejectViewAs, limitWrites, withProject(), async (req, res) => {
router.delete('/:id', requireSession, rejectViewAs, withProject(), limitWrites, async (req, res) => {
try {
await deletePost({ customerId: getSessionCustomerId(req), projectId: req.projectId, id: req.params.id })
res.status(204).end()