chore: add gateway scaffold
This commit is contained in:
8
src/routes/version.ts
Normal file
8
src/routes/version.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { FastifyInstance } from 'fastify';
|
||||
|
||||
export default async function versionRoute(fastify: FastifyInstance) {
|
||||
fastify.get('/version', async () => ({
|
||||
version: '0.0.1',
|
||||
commit: process.env.COMMIT_SHA || 'dev',
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user