Hi Mike,
could you try with router.attachDefault(DiscoveryDocument.class); ?
Best regards,
Thierry Boileau
--
Restlet ~ Core developer ~ http://www.restlet.org <http://www.restlet.org/>
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
<http://www.noelios.com/>
Hi,
I'm using restlet version 1.0.10 (stable) and I'm basing my
implementation on the firstResource tutorial at
http://www.restlet.org/documentation/1.0/firstResource
I would like to know how to support routing at the base URI. So when i
type in the browser e.g http://localhost/RestletApp, the restlet
server will be able to process this request.
I tried the following code, but didnt really work, the serve returned
a 404 Not Found error
router.attach("/", DiscoveryDocument.class);
where DiscoveryDocument is a class that extends the base class like
the tutorial.
Thanks and kind regards,
Mike Xia