Are node static resources routed?

I statically hosted my background management page (admin) on node

localhost:3000/admin.html

admin
node
admin

Mar.20,2021

if this is the case, what should I do if I want to determine the login status?

Middleware is a layer-by-layer execution, and you can choose not to execute it when you finish it.

put app.use ('/',.) ) in front of the static resource middleware.


;
var router = express.Router();


router.get('/', function(req, res) {})

app.use('/',router)

app.get('/',(a,b)=>{})
Menu