Skip to content

Commit

Permalink
Pulls version from package json
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Sep 20, 2024
1 parent 8127a4c commit f97db83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rest-api/src/swagger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import swaggerJsdoc from 'swagger-jsdoc'

import { version } from '../package.json'

const isDevelopment = process.env.NODE_ENV === 'development'
const serverUrl = isDevelopment
? 'http://localhost:3000'
Expand All @@ -10,7 +12,7 @@ const options: swaggerJsdoc.Options = {
openapi: '3.0.0',
info: {
title: 'Syanpse Protocol REST API',
version: '1.0.77',
version,
description: 'API documentation for the Synapse Protocol REST API',
},
servers: [
Expand Down

0 comments on commit f97db83

Please sign in to comment.