skip to Main Content

Mongodb – Form DELETE method is redirecting to the GET method instead in EXPRESS JS

I have a form here with the delete method being used: <form action="/article/<%= articles[i]._id %>" method="DELETE"><button class="btn btn-danger" type="submit">Delete</button></form> Then my routes for the article ID's look like this: const articleById = require('../controllers/article/articleById') router.get('/:id', articleById) const deleteArticleById = require('../controllers/article/deleteArticleById') router.delete('/:id',…

VIEW QUESTION

Dockerizing Nextjs with typescript

I'm trying to build a Docker Image of my Nextjs frontend(React) application for production and am currently stuck at typescript integration. Here's the Dockerfile. FROM node:14-alpine3.14 as deps RUN apk add --no-cache tini ENTRYPOINT ["/sbin/tini", "--"] EXPOSE 4500 RUN apk…

VIEW QUESTION
Back To Top
Search