Skip to content

Commit e11c238

Browse files
authored
Update modules/customizing-the-learning-paths/proc-customizing-the-learning-paths-by-using-hosted-json-files.adoc
1 parent 57bb641 commit e11c238

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/customizing-the-learning-paths/proc-customizing-the-learning-paths-by-using-hosted-json-files.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,22 @@ For ease of use and simplicity, you can configure the Learning Paths by using a
88

99
. Configure the {product-short} proxy to access the Learning Paths data from the hosted JSON file, by adding the following to the `{my-app-config-file}` file:
1010
+
11-
[source,yaml]
11+
[source,yaml,subs='+quotes']
1212
----
1313
proxy:
1414
endpoints:
1515
'/developer-hub':
16-
target: https://raw.githubusercontent.com/
16+
target: _<target>_
1717
pathRewrite:
18-
'^/api/proxy/developer-hub/learning-paths': '/redhat-developer/rhdh/main/packages/app/public/learning-paths/data.json'
18+
'^/api/proxy/developer-hub/learning-paths': '_<learning_path.json>_'
1919
changeOrigin: true
2020
secure: true
2121
----
22+
23+
`_<target>_`:: Enter the hosted JSON file base URL, such as `https://raw.githubusercontent.com`.
24+
25+
`_<learning_path.json>_`:: Enter the hosted JSON file path without the base URL, such as
26+
`'/redhat-developer/rhdh/main/packages/app/public/learning-paths/data.json'`
2227
+
2328
[TIP]
2429
====

0 commit comments

Comments
 (0)