There was an error while loading. Please reload this page.
1 parent 83d97e4 commit 787d00cCopy full SHA for 787d00c
1 file changed
script.js
@@ -1 +1,10 @@
1
import express from "express"
2
+const app = express();
3
+const port = 3000;
4
+
5
+function usernameExtract(req, res, next) {
6
+ const username = req.get("X-Username");
7
+ req.username = username ? username : null;
8
+ next();
9
+}
10
0 commit comments