diff options
Diffstat (limited to 'packages/server/src/routes/repo.ts')
-rw-r--r-- | packages/server/src/routes/repo.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/server/src/routes/repo.ts b/packages/server/src/routes/repo.ts index 32ac9c4..bb70c68 100644 --- a/packages/server/src/routes/repo.ts +++ b/packages/server/src/routes/repo.ts @@ -61,6 +61,11 @@ export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, do fastify.route<Route>({ method: "GET", url: "/refs/tags/:tag", + schema: { + params: { + tag: { type: "string" } + } + }, handler: async(req, reply) => { const repository = await Repository.open(opts.config.settings.git_dir, req.params.repo).catch((err: ServerError) => err); |