node's get() function is never called when serving static files

前端 未结 0 1988
借酒劲吻你
借酒劲吻你 2021-02-01 09:14

When I go to localhost:3000, app.get() is not called.

const express = require(\'express\');
const app = express();
app.use(express.static(\'public\'));

app.get(\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题