Skip to content

Instantly share code, notes, and snippets.

@labra
Created March 28, 2014 09:40
Show Gist options
  • Save labra/9828971 to your computer and use it in GitHub Desktop.
Save labra/9828971 to your computer and use it in GitHub Desktop.
Simple routes file
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Home page
GET /saluda controllers.Application.saludaEdad(nombre: String, edad: Int)
GET / controllers.Application.index()
GET /country controllers.Application.showCountries()
GET /country/:code controllers.Application.showCountry(code:String)
POST /country controllers.Application.addCountry
PUT /country/:code controllers.Application.updateCountry(code:String)
DELETE /country/:code controllers.Application.delCountry(code:String)
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment