Refactoring of code
This commit is contained in:
@@ -16,7 +16,23 @@ When dealing with many routes, maintaining them in one file can quickly become u
|
||||
|
||||
Example of an extra route
|
||||
|
||||
Create a file using `yaml` or `.yaml` extensions
|
||||
Defined an extra route path in `gateway` section as shown below.
|
||||
|
||||
```yaml
|
||||
version: 1.0
|
||||
gateway:
|
||||
...
|
||||
## Add additional routes
|
||||
extraRoutes:
|
||||
# path
|
||||
directory: /etc/goma/extra
|
||||
watch: false
|
||||
routes:
|
||||
- path: /
|
||||
name: example
|
||||
```
|
||||
|
||||
Create a file in `/etc/goma/extra` using `yaml` or `.yaml` extension.
|
||||
|
||||
```yaml
|
||||
routes:
|
||||
|
||||
@@ -64,11 +64,6 @@ gateway:
|
||||
accessLog: /dev/Stdout
|
||||
errorLog: /dev/stderr
|
||||
logLevel: info
|
||||
## Add additional routes
|
||||
extraRoutes:
|
||||
# path
|
||||
directory: /etc/goma/extra
|
||||
watch: true
|
||||
disableRouteHealthCheckError: false
|
||||
disableDisplayRouteOnStart: false
|
||||
disableKeepAlive: false
|
||||
@@ -85,5 +80,10 @@ gateway:
|
||||
Access-Control-Allow-Credentials: "true"
|
||||
Access-Control-Allow-Headers: Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id
|
||||
Access-Control-Max-Age: "1728000"
|
||||
## Add additional routes
|
||||
extraRoutes:
|
||||
# path
|
||||
directory: /etc/goma/extra
|
||||
watch: true
|
||||
routes: []
|
||||
```
|
||||
Reference in New Issue
Block a user