Can I have a subdirectory in the WEB-INF/groovy directory?

11 views
Skip to first unread message

hansamann

unread,
Jan 25, 2012, 5:55:57 AM1/25/12
to Gaelyk
Hi all,

I'd like to have subdirectories in the WEB-INF/groovy directory, e.g.
this is what I'd like to see in the routes.groovy based on that
directory structure:

get "/api/v1/weather", forward: "/api/v1/weather.groovy"

This does not work, I only get it working if I am using this:

get "/api/v1/weather", forward: "/weather.groovy"

Is there a way?
Message has been deleted

Scott Murphy

unread,
Jan 25, 2012, 12:55:18 PM1/25/12
to Gaelyk
That should work. I use subdirectories without any problems.

example:
all "/images/mine", forward: "/images/mine.groovy"

What is the error you are getting?

hansamann

unread,
Feb 21, 2012, 3:37:42 AM2/21/12
to Gaelyk
crazy, just tried it again and now it all works.... well. seems like a
restart sometimes helps. :-) thx!
Reply all
Reply to author
Forward
0 new messages