Sep 19, 2010

Routing problem with GreenScript configurator

In the morning when I play with GreenScript configurator to verify it's compatibility with Play-1.0. I found all these mapping entries do not work anymore:
  • http://localhost:9000/gs/
  • http://localhost:9000/gs/conf
  • http://localhost:9000/gs/configure
  • http://localhost:9000/gs/setting

However, this link works: http://localhost:9000/gs (without "/" suffix!)

Later I realized that I have an entry in the routing table of the demo app: GET /gs/ staticDir:public/gs, for shortcut of URL to compressed/minimized files.

Yes, this is the problem. You can't make both static file and controller mapping to the same url path!

No comments:

About Me

My photo