浏览代码

Using local kubernetes api endpoints

bodicsek 3 年之前
父节点
当前提交
24ffe94c2d
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      deployment/deployment.yaml
  2. 1 1
      package.json
  3. 1 1
      src/hooks/useLogin.tsx

+ 1 - 1
deployment/deployment.yaml

@@ -14,6 +14,6 @@ spec:
     spec:
       containers:
         - name: occ-fw-ui
-          image: occ-fw-ui:1.0.2
+          image: occ-fw-ui:1.0.3
           ports:
           - containerPort: 8000

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "occ-fw-ui",
-  "version": "1.0.2",
+  "version": "1.0.3",
   "description": "An Oracle JavaScript Extension Toolkit(JET) web app",
   "scripts": {
     "start": "ojet serve",

+ 1 - 1
src/hooks/useLogin.tsx

@@ -60,7 +60,7 @@ export const useLogin = () => {
         // Get the tokens using the received authorization code
         const code = searchParams.get("code");
         console.log("code", code);
-        fetch("http://localhost:3000/auth/login", {
+        fetch("https://localhost/occ/api/auth/login", {
           method: "POST",
           headers: new Headers({
             "Content-Type": "application/json"