Skip to content

Commit

Permalink
config update and footer text
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Jul 10, 2018
1 parent 53cf4e4 commit 4a59fb9
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 373 deletions.
10 changes: 5 additions & 5 deletions config/aah.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
###################################################
# aahwebsite - aah framework application
# -----------------------------------------------------------------------------
# website - aah Application Configuration
#
# Complete configuration reference:
# https://docs.aahframework.org/app-config.html
###################################################
# Refer documentation to explore and customize the configurations.
# Doc: https://docs.aahframework.org/app-config.html
# -----------------------------------------------------------------------------

# Application name (non-whitespace)
# Default value is `basename` of import path.
Expand Down
115 changes: 27 additions & 88 deletions config/routes.conf
Original file line number Diff line number Diff line change
@@ -1,79 +1,48 @@
####################################################
# aahwebsite - Application Routes Configuration
# -----------------------------------------------------------------------------
# website - Application Routes Configuration
#
# Complete configuration reference:
# https://docs.aahframework.org/routes-config.html
####################################################
# Refer documentation to explore and configure routes.
# Doc: https://docs.aahframework.org/routing.html
# -----------------------------------------------------------------------------

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

# Domain name/ip address with port no, basically unique name
#------------------------------------------------------------------------------
# Domain/subdomain Key Name
# Choose a `unique keyname` to define domain section and its configuration.
# Tip: domain name address, port no values could be used to create a
# meaningful domain key, etc.
#
# Doc: https://docs.aahframework.org/routes-config.html#domain-configuration
#------------------------------------------------------------------------------
aahframework {
name = "aahframework.org 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
name = "aahframework website routes"
host = "localhost"

# Redirect trailing slash is to enable automatic redirection if the current
# route can't be matched but a `route` for the path with (without)
# the trailing slash exists.
# Default value is `true`.
#redirect_trailing_slash = true

# aah supports out-of-the-box `405 MethodNotAllowed` status with `Allow`
# header as per `RFC7231`. Perfect for RESTful APIs.
# Default value is `true`.
#method_not_allowed = true

# aah framework supports out-of-the-box `OPTIONS` request replies.
# User defined `OPTIONS` routes take priority over the automatic replies.
# Perfect for RESTful APIs.
# Default value is `true`.
#auto_options = true

#----------------------------------------------------------------------------
# Static Routes Configuration
#------------------------------------------------------------------------------
# Static files Routes Configuration
# To serve static files, it can be directory or individual file.
# This section optional one, for e.g: RESTful APIs doesn't need this section.
# Static files are delivered via `http.ServeContent`.
#
# Supported features:
# * Serve directory
# * Serve individual file
# * Directory listing
# - Serve directory
# - Serve individual file
# - Directory listing
#
# Pick your choice of `unique name` for each `directory` or `individual` file
# Choose an `unique name` for each `directory` or `individual` file
# static route definition. It is called `route name`.
#
# Doc: https://docs.aahframework.org/routes-config.html#section-static
#----------------------------------------------------------------------------
#------------------------------------------------------------------------------
static {
#-------------------------------------
# Static route name, pick a unique one
# for serving directory
#-------------------------------------
public_assets {
# URL 'path' for serving directory
# Below definition means '/assets/**'
path = "/assets"

# Relative to application base directory or an absolute path
dir = "static"

# list directory, default is 'false'
#list = true
}

# serving single file
favicon {
path = "/favicon.ico"

# Direct file mapping, It can be relative to application base directory
# or an absolute path. For relative path, it uses below `base_dir` config value.
file = "img/favicon.ico"
}

Expand Down Expand Up @@ -103,41 +72,21 @@ domains {
}
}

#-----------------------------------------------------------------------------
# Application routes
# Doc: https://docs.aahframework.org/routes-config.html#section-routes
# Doc: https://docs.aahframework.org/routes-config.html#namespace-group-routes
#-----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Routes Configuration
#
# Doc: https://docs.aahframework.org/routes-config.html#routes-configuration
# -----------------------------------------------------------------------------
routes {
ping_pong {
path = "/ping"
controller = "AppController"
action = "HealthCheck"
}

#------------------------------------------------------
# Pick an unique name, it's called `route name`,
# used for reverse URL.
#------------------------------------------------------
index {
# path is used to match incoming requests
# It can contain `:name` - Named parameter and
# `*name` - Catch-all parameter
path = "/"

# HTTP method mapping, It can be multiple `HTTP` methods with comma separated
# Default value is `GET`, it can be lowercase or uppercase
#method = "GET"

# The controller to be called for mapped URL path.
# * `controller` attribute supports with or without package prefix. For e.g.: `v1.User` or `User`
# * `controller` attribute supports both naming conventions. For e.g.: `User` or `UserController`
controller = "SiteController"

# The action/method name in the controller to be called for mapped URL path.
# Default values are mapped based on `HTTP` method. Refer doc for more info.
# Default action value for GET is 'Index'.
#action = "Index"
}

get_involved {
Expand Down Expand Up @@ -203,10 +152,6 @@ domains {
host = "docs.localhost"
subdomain = true

method_not_allowed = true
redirect_trailing_slash = true
auto_options = false

routes {
index {
path = "/"
Expand Down Expand Up @@ -234,12 +179,6 @@ domains {
}
}

#show_doc {
# path = "/:version/*content"
# controller = "DocController"
# action = "ShowDoc"
#}

} # end - docs app routes

} # end - docs aahframework
Expand Down
Loading

0 comments on commit 4a59fb9

Please sign in to comment.