Skip to content

Instantly share code, notes, and snippets.

Created Dec 11, 2016
What would you like to do?
var express = require("express");
var app = express();
var server = require('http').Server(app);
app.get("*", function(req, res, next) {
var url = req.path.substr(1);
if(url.startsWith("") || url.startsWith("")) {
console.log("Getting url "+req.path);
} else {
res.status(403).end("403 Forbidden");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment