Cutom endpoint-xhr in plone


Is there a way in Plone to create a custom xhr-endpoint for a very specific request. I need something like this localhost:8080/Plone/mycustomendpointforaveryspecificquery that should return json only. eg

"veryspecific": "..."

// Daniel

Write a browser view.

Yes, i tried that. So that sort of works, now i can access my view at
localhost:8080/Plone/mycustomendpointforaveryspecificquery, but also at localhost:8080/Plone/whatever/mycustomendpointforaveryspecificquery , how can i restrict this behaviour?

Bind your brower view to for="Products.CMFPlone.interfaces.IPloneSite"