Refactoring of code

This commit is contained in:
Jonas Kaninda
2024-11-18 11:50:53 +01:00
parent 4ce89bed17
commit bc60fc78e0
3 changed files with 29 additions and 12 deletions

View File

@@ -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: