Ajax request in express get request cannot find the file, why can it be replaced by a post request?

The

code is as follows
app.get ("/ getToal",function (req,res) {

)
db.query("select count(*) as totalNum from t_package",[],function(result,fields){
    res.send({code: 200, message: "",data:result});
})

});
the local service written in node is not routed and can respond to ajax, with post request but the get request does not execute the ajax request but goes directly to the project to find the corresponding file without executing the interface.
just replace the get request with post. Why? Contact node, for advice for the first time

Jan.19,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d986-2c3b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d986-2c3b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?