aboutsummaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-06-02 20:13:48 +0200
committerHampusM <hampus@hampusmat.com>2021-06-02 20:13:48 +0200
commit371e3f13e0a046aeca3a2895e4a85f8b51059edf (patch)
tree8a98c46931b2fd10bc68b8a75eda99f9848c70f9 /src/app.js
parent094de489fcbcbe21fdd6ab89deae09af625a7f7b (diff)
Added a tree page
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index b05bbcf..8904219 100644
--- a/src/app.js
+++ b/src/app.js
@@ -116,6 +116,15 @@ fastify.register((fastify_repo, opts, done) =>
fastify_repo.route({
method: "GET",
+ path: "/tree/*",
+ handler: async (req, reply) =>
+ {
+ reply.sendFile("app.html");
+ }
+ });
+
+ fastify_repo.route({
+ method: "GET",
path: "/info/refs",
handler: (req, reply) =>
{