Skip to content

Quick example with tests of a small web application in Play 2.1 that can match subdomains in routes. It enables to use Include files (for example if you want to have an api.example.com defined in a api.routes files) and params (if you want to have http://[username].example.com/)

License

Notifications You must be signed in to change notification settings

wellspring/play21-subdomain-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example of a Play 2.1 application
============================================

This application is a proof of concept (with related tests) of my branch feature-subdomain in Play20.

This is auick example of a small web application in Play 2.1 that can match subdomains in routes.
The patch enables to :
- use Include files (for example, if you want to have an api.example.com defined in an external api.routes files)
- have domain params (for example, if you want to match http://[username].example.com/ to your controller)
- get the subdomain easily (by providing a 'subdomain' param in the controllers actions)

Any comments about it are welcome.

About

Quick example with tests of a small web application in Play 2.1 that can match subdomains in routes. It enables to use Include files (for example if you want to have an api.example.com defined in a api.routes files) and params (if you want to have http://[username].example.com/)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages