Hey,
In repository, there is no resource /imgs.
And, I want to register a servlet in osgi bundle that will handle all
requests to /imgs/*
For example,
GET /imgs/some/image.jpg
GET /imgs/foo/bar.tags.xml
GET /imgs.json
GET /imgs.xml
GET /imgs/foo/bar.html
and POST..
I tried:
@Property(name = "sling.servlet.prefix", value = "/imgs")
@Property(name = "sling.servlet.selectors", value={"tags"})
But that alone does not properly register the servlet.
Is there a way to register a servlet at /some-prefix-path ?
I cannot create resources under /imgs. If I could, I could create them and
set sling:resourceType.
And, I cannot use sling/servlet/default because that conflicts with other
servlets ( /some/existing/resource.tags.html will also be handled by the
servlet registered with sling.servlet.resourceTypes =
"sling/servlet/default").