File: routes

package info (click to toggle)
golang-github-revel-revel 0.12.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 840 kB
  • ctags: 832
  • sloc: makefile: 7; xml: 7
file content (16 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

module:testrunner

GET     /hotels                                 Hotels.Index
GET     /hotels/:id                             Hotels.Show
GET     /hotels/:id/booking                     Hotels.Book

# Map static resources from the /app/public folder to the /public path
GET     /public/*filepath                       Static.Serve("public")
GET     /favicon.ico                            Static.Serve("public/img","favicon.png")

# Catch all
*       /:controller/:action                    :controller.:action