From a0a8f9740644b6dbf7bf2c86f0ed28edff889d1b Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Sat, 30 Dec 2023 02:47:29 +0900 Subject: [PATCH] Add missing comment to projected NFT controller --- .env | 2 -- docs/bin/openapi.json | 1 + .../server/app/controllers/ProjectedNftRangeController.ts | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 7da8d745..780de03e 100644 --- a/.env +++ b/.env @@ -15,5 +15,3 @@ PGPASSFILE="$(realpath secrets/.pgpass)" # as this command will gracefully fallback to PGPASSFILE if no password is specified # However, some dev tools like pgtyped & zapatos don't support .pgpass files DATABASE_URL=postgresql://${PGUSER}:${PGPASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} -# Needed for PgTyped -PGURI=$DATABASE_URL diff --git a/docs/bin/openapi.json b/docs/bin/openapi.json index 0b016801..9583408e 100644 --- a/docs/bin/openapi.json +++ b/docs/bin/openapi.json @@ -1808,6 +1808,7 @@ } } }, + "description": "Query any [projected NFT](https://github.com/dcSpark/projected-nft-whirlpool).", "security": [], "parameters": [], "requestBody": { diff --git a/webserver/server/app/controllers/ProjectedNftRangeController.ts b/webserver/server/app/controllers/ProjectedNftRangeController.ts index fe9a4681..3e68adf1 100644 --- a/webserver/server/app/controllers/ProjectedNftRangeController.ts +++ b/webserver/server/app/controllers/ProjectedNftRangeController.ts @@ -14,6 +14,9 @@ const route = Routes.projectedNftEventsRange; @Route('projected-nft/range') export class ProjectedNftRangeController extends Controller { + /** + * Query any [projected NFT](https://github.com/dcSpark/projected-nft-whirlpool). + */ @SuccessResponse(`${StatusCodes.OK}`) @Post() public async projectedNftRange(