aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/app.ts')
-rw-r--r--packages/server/src/app.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/server/src/app.ts b/packages/server/src/app.ts
index d5f63b0..263703b 100644
--- a/packages/server/src/app.ts
+++ b/packages/server/src/app.ts
@@ -117,6 +117,15 @@ fastify.route({
}
});
+fastify.route({
+ method: "GET",
+ url: "/:repo([a-zA-Z0-9\\.\\-_]+)/refs/tags/:tag",
+ handler: (req, reply) => {
+ const params: any = req.params;
+ git.downloadTagArchive(params.repo, params.tag, reply);
+ }
+});
+
fastify.listen(settings.port, settings.host, (err: Error, addr: string) => {
if(err) {
console.error(err);