####################################################
# benchmark - Application Routes Configuration
#
# Complete routes configuration reference:
#   https://docs.aahframework.org/routes-config.html
####################################################

#------------------------------------------------------------------------
# Domain and sub-domain configuration goes into section `domains { ... }`
#------------------------------------------------------------------------
domains {

  # Pick your choice of an `unique keyname` to define your domain section
  # in the routes configuration.
  # For e.g.: Domain name/ip address with port no
  localhost {
    name = "benchmark routes"

    # aah supports multi-domain routes configuration out-of-the-box.
    # `host` used to determine domain routes for the incoming request.
    # For e.g: example.org
    host = "localhost"

    #-----------------------------------------------------------------------------
    # Application routes
    # Doc: https://docs.aahframework.org/routes-config.html#section-routes
    # Doc: https://docs.aahframework.org/routes-config.html#namespace-group-routes
    #-----------------------------------------------------------------------------
    routes {

      json {
        path = "/json"
        controller = "AppController"
        action = "JSON"
      }

      db {
        path = "/db"
        controller = "AppController"
        action = "GetWorld"
      }

      dbs {
        path = "/queries"
        controller = "AppController"
        action = "GetWorlds"
      }

      fortunes {
        path = "/fortunes"
        controller = "AppController"
        action = "Fortunes"
      }

      updates {
        path = "/updates"
        controller = "AppController"
        action = "UpdateWorlds"
      }

      plaintext {
        path = "/plaintext"
        controller = "AppController"
        action = "Plaintext"
      }

    } # end - routes

  } # end - localhost

} # end - domains
