forked from Yara724/api
Merge pull request 'Added USER_BASE_PATH env' (#118) from s.yahyaee/yara724-api:main into main
Reviewed-on: Yara724/api#118
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
# ---------------------------------------------
|
||||
NODE_ENV =
|
||||
PORT =
|
||||
CLIENT_ID =
|
||||
CLIENT_NAME =
|
||||
CLIENT_ID =
|
||||
CLIENT_NAME =
|
||||
# ---------------------------------------------
|
||||
# 🌐 Application URLs
|
||||
# ---------------------------------------------
|
||||
URL =
|
||||
USER_BASE_PATH =
|
||||
BASE_URL_DEV =
|
||||
|
||||
# ---------------------------------------------
|
||||
@@ -28,11 +29,13 @@ MONGO_DB_NAME =
|
||||
MONGO_OPTIONS =
|
||||
MONGO_TLS =
|
||||
MONGO_TLS_ALLOW_INVALID_CERTS =
|
||||
MONGO_URI = 'mongodb://${MONGO_USER}:${MONGO_PASS}@${MONGO_HOST}:${MONGO_PORT}/${MONGO_DB_NAME}?${MONGO_OPTIONS}'
|
||||
|
||||
# ---------------------------------------------
|
||||
# 🔐 Authentication / Security
|
||||
# ---------------------------------------------
|
||||
JWT_SECRET =
|
||||
JWT_EXPIRY =
|
||||
|
||||
# ---------------------------------------------
|
||||
# 🧩 SanHub Microservice
|
||||
|
||||
@@ -46,11 +46,11 @@ export class SmsOrchestrationService implements OnModuleInit {
|
||||
partyRole: "FIRST" | "SECOND",
|
||||
): string {
|
||||
const route = partyRole === "SECOND" ? "user2" : "user";
|
||||
return `${process.env.URL}/${route}?token=${requestId}`;
|
||||
return `${process.env.URL}/${process.env.USER_BASE_PATH}/${route}?token=${requestId}`;
|
||||
}
|
||||
|
||||
buildClaimLink(claimRequestId: string): string {
|
||||
return `${process.env.URL}/caseClaim?token=${claimRequestId}`;
|
||||
return `${process.env.URL}/${process.env.USER_BASE_PATH}/caseClaim?token=${claimRequestId}`;
|
||||
}
|
||||
|
||||
async sendInviteLink(
|
||||
|
||||
Reference in New Issue
Block a user