File: webrouting-example.conf

package info (click to toggle)
trapperkeeper-webserver-jetty9-clojure 1.7.0-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,156 kB
  • sloc: xml: 531; java: 120; makefile: 24; sh: 10
file content (38 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
global: {
    # Points to a logback config file
    logging-config: examples/webrouting_app/logback.xml
}

nrepl: {
    enabled: true
}

webserver: {
    foo: {
        port: 8080
        default-server: true
    }
    quux: {
        port: 9000
    }
}

web-router-service: {
    "examples.webrouting-app.example-services/foo-service": "/foo"
    "examples.webrouting-app.example-services/bar-service": {
        bar: "/bar"
        baz: "/goodbye"
    }
    "examples.webrouting-app.example-services/quux-service": {
        route:  "/quux"
        server: "quux"
    }
    "examples.webrouting-app.example-services/bert-service": {
        baz:  "/baz"
        bert: {
            route: "/bert"
            server: "quux"
        }
    }
    "examples.webrouting-app.example-services/hello-service": "/hello"
}