又一次搬家囉! https://blog.inndy.tw

over 2 years ago

Use built-in http module and ecstatic for middleware.

First, install ecstatic

npm install ecstatic

And the magic!

serve.js
var http = require('http'),
    ecstatic = require('ecstatic');

http.createServer(ecstatic({root:'./'}))
    .listen(8080, '127.0.0.1');
← 某網站小遊戲加密弱點分析 CTF介紹 →
 
comments powered by Disqus