I'm going through Lift's basics in Section 3.2 SiteMap
of Simply Lift and one thing struck me.
Using the default SiteMap
code, you can ask for, say, info
view in three ways:
GET /info
,GET /info.html
,GET /info.xml
(why?).
What is more, you can request index
view in four different ways:
GET /
,GET /index
,GET /index.html
,GET /index.xml
.
How can I limit this behaviour to GET /
for directories and GET /info
for files?
P.S. All of these return 200 OK
:
Shouldn't one resource have one URL only?