# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

GET     /                                       Application.index
GET     /hotels                                 Hotels.index
GET     /hotels/list                            Hotels.list
GET     /hotels/{id}                            Hotels.show
GET     /hotels/{id}/booking                    Hotels.book
POST    /hotels/{id}/booking                    Hotels.confirmBooking
DELETE  /bookings/{id}                          Hotels.cancelBooking
GET     /register                               Application.register
POST    /register                               Application.saveUser
GET     /settings                               Hotels.settings
POST    /settings                               Hotels.saveSettings
POST    /login                                  Application.login
GET     /logout                                 Application.logout

* /gsconf/ module:greenscript
* / module:secure

# Map static resources from the /app/public folder to the /public path
GET     /public/                                staticDir:public

# Catch all
*       /{controller}/{action}                  {controller}.{action}
