mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 13:02:12 -07:00
8 lines
300 B
JavaScript
8 lines
300 B
JavaScript
// Called before every request is executed, just override the response with
|
|
// our own html web page.
|
|
function onRequest(req, res) {
|
|
res.Status = 200;
|
|
res.ContentType = "text/html";
|
|
res.Headers = "Connection: close";
|
|
res.Body = readFile("caplets/www/index.html");
|
|
}
|