Skip to content

Commit

Permalink
Merge pull request #71 from constantine2nd/develop
Browse files Browse the repository at this point in the history
Portal
  • Loading branch information
simonredfern authored Nov 26, 2024
2 parents d79e18b + 208743d commit 1397ced
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-explorer",
"version": "1.0.24",
"version": "1.0.25",
"private": true,
"scripts": {
"dev": "vite & ts-node server/app.ts",
Expand Down
4 changes: 2 additions & 2 deletions server/middlewares/OauthRequestTokenMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export default class OauthRequestTokenMiddleware implements ExpressMiddlewareInt
constructor(private oauthInjectedService: OauthInjectedService) {}

use(request: Request, response: Response): any {
const apiHost = process.env.VITE_OBP_API_PORTAL_HOST || process.env.VITE_OBP_API_HOST;
console.debug('OauthRequestTokenMiddleware - API Host:', apiHost);
const apiHost = process.env.VITE_OBP_API_PORTAL_HOST ? process.env.VITE_OBP_API_PORTAL_HOST : process.env.VITE_OBP_API_HOST
console.debug('process.env.VITE_OBP_API_PORTAL_HOST:', process.env.VITE_OBP_API_PORTAL_HOST)
const oauthService = this.oauthInjectedService
const consumer = oauthService.getConsumer()
consumer.getOAuthRequestToken((error: any, oauthTokenKey: string, oauthTokenSecret: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeaderNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const route = useRoute()
const router = useRouter()
const obpApiHost = ref(import.meta.env.VITE_OBP_API_HOST)
const obpApiPortalHost = ref(import.meta.env.VITE_OBP_API_PORTAL_HOST)
const obpApiHybridPost = computed(() => obpApiPortalHost.value || obpApiHost.value)
const obpApiHybridPost = computed(() => obpApiPortalHost.value ? obpApiPortalHost.value : obpApiHost.value)
const obpApiManagerHost = ref(import.meta.env.VITE_OBP_API_MANAGER_HOST)
const loginUsername = ref('')
const logoffurl = ref('')
Expand Down

0 comments on commit 1397ced

Please sign in to comment.