Skip to content

Commit

Permalink
feat: show password required in info endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Sep 1, 2024
1 parent 9305bb2 commit f06d781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ DATABASE_URL="file:./jim.db"
BASE_URL="http://localhost:3000"
DAILY_WALLET_LIMIT=10
#APP_NAME_PREFIX = "Alby Jim "
#PASSWORD="My super secret password"

# Info
NAME="Uncle Jim Demo Server"
Expand Down
2 changes: 2 additions & 0 deletions app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ export async function getReserves(): Promise<Reserves | undefined> {
}

export async function getInfo() {
const passwordRequired: boolean = Boolean(process.env.PASSWORD);
return {
name: process.env.NAME,
description: process.env.DESCRIPTION,
image: process.env.IMAGE,
dailyWalletLimit: getDailyWalletLimit(),
passwordRequired,
};
}

Expand Down

0 comments on commit f06d781

Please sign in to comment.