UNPKG

@hutiwephy/ape-express

Version:

Authenticate and Encrypt HTTP with User Credentials (Not TLS-SRP) (ExpressJS Implementation).

17 lines (12 loc) 343 B
const express = require("express"); const ape = require("@hutiwephy/ape"); module.exports = (function(){ var tmp = express.Router(); tmp.get("/ape.js", (req, res, next)=>{ res.sendFile(ape.libpath); }); tmp.get("/ape.min.js", (req, res, next)=>{ res.sendFile(ape.libpath); }); return tmp; })();