aboutsummaryrefslogtreecommitdiff
path: root/entries/braxtonh/express
diff options
context:
space:
mode:
authorbraxtonhall2022-10-23 19:27:49 +0000
committerbraxtonhall2022-10-23 19:27:49 +0000
commit77ffde450e92ffe6527c35ffc2383b17d4c04f68 (patch)
tree65a560a18f1952114727e05872fce3f149e660e4 /entries/braxtonh/express
parentb5b18e46e3a5c4daaa3b4613395b1a216a47bc17 (diff)
Rename directory to use GitHub ID
Diffstat (limited to 'entries/braxtonh/express')
-rw-r--r--entries/braxtonh/express/index.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/entries/braxtonh/express/index.js b/entries/braxtonh/express/index.js
deleted file mode 100644
index 2da6092..0000000
--- a/entries/braxtonh/express/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import { get } from "axios";
-import express from "express";
-
-const app = express();
-
-const getURL = (n) => `/fib?${new URLSearchParams({n})}`;
-
-app.get("/fib", async (res, req, next) => {
- const {n} = req.params;
- if (n <= 0) {
- res.send(n).status(200);
- } else {
- const futures = [get(getURL(n - 1)), get(getURL(n - 2))];
- const [nSub1, nSub2] = await Promise.all(futures);
- res.send(nSub1 + nSub2).status(200);
- }
- return next();
-});
-
-app.start();
-
-// TODO... is this syntax correct???