# -----------------------------------------------------------------------------
# benchmark - Application Routes Configuration
#
# Refer documentation to explore and configure routes.
# Doc: https://docs.aahframework.org/routing.html
# -----------------------------------------------------------------------------

domains {

  localhost {
    name = "benchmark routes"
    host = "localhost"

    routes {

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

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

      # For MySQL datasource
      db {
        path = "/db"
        controller = "AppController"
        action = "World"

        routes {
          dbs {
            path = "/queries"
            action = "Worlds"
          }
          fortunes {
            path = "/fortunes"
            action = "Fortunes"
          }
          updates {
            path = "/updates"
            action = "UpdateWorlds"
          }
        }
      }

      # For PostgreSQL datasource
      pg_db {
        path = "/pg-db"
        controller = "AppController"
        action = "PGWorld"

        routes {
          pg_dbs {
            path = "/queries"
            action = "PGWorlds"
          }
          pg_fortunes {
            path = "/fortunes"
            action = "PGFortunes"
          }
          pg_updates {
            path = "/updates"
            action = "PGUpdateWorlds"
          }
        }
      }      

    } # end - routes

  } # end - localhost

} # end - domains
