Nodejs, why do i always delete Cannot GET/?

  node.js, question

I used Express, which I wrote below.

var express = require('express');
 var app = express();
 
 app.delete('/del_user', function (req, res) {
 Log ("/del _ user responds to DELETE request");
 Res.send ('Delete Page');
 })
 
 var server = app.listen(8081, function () {
 var host = server.address().address
 var port = server.address().port
 Log ("application instance, access address is http:// percent s: percent s", host, port)
 })

I open 127.0.0.1:8081/del_user and always get Cannot GET /del_user, but I can’t get the deleted page, please master, why is this? ?

Enter the URL in the browser address bar, and the browser will request the server in the way of GET, while your program does not have the corresponding logic to handle GET. To send a DELETE request, you can find a RESTClient tool to test the effect.