aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/routes/api/v1
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-08-05 17:03:36 +0200
committerHampusM <hampus@hampusmat.com>2021-08-05 17:03:36 +0200
commit8c6a59cd766fead4998c957d86a0e33fd58d1cde (patch)
treeff2cd43a4a5dafb27348fc320784c39f1fe9c941 /packages/server/src/routes/api/v1
parent22bf491be5f25bccf779be53b2ad37836f0850b8 (diff)
The tree API has a branch query param & made repository branch less hardcoded
Diffstat (limited to 'packages/server/src/routes/api/v1')
-rw-r--r--packages/server/src/routes/api/v1/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/routes/api/v1/index.ts b/packages/server/src/routes/api/v1/index.ts
index 9cc20c2..9c35d53 100644
--- a/packages/server/src/routes/api/v1/index.ts
+++ b/packages/server/src/routes/api/v1/index.ts
@@ -33,7 +33,7 @@ function reposEndpoints(fastify: FastifyInstance, opts: FastifyPluginOptions, do
return <APIRepositorySummary>{
name: repository.name.short,
description: await repository.description(),
- last_updated: (await repository.masterCommit()).date
+ last_updated: (await repository.head()).date
};
}))
});