File Manager return JSON?

So it just occurred to me I should be able to do something like this in the caddyfile:

browse /photos

filemanager {
show photos on /photosmanage
}

Then if I request mysite.com/photos with a header of “Accept: application/json”, I should get the json list, but can still use the filemanager plugin in the same folder by visiting mysite.com/photosmanage.

Does that sound right?