You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case that the Accept request header contains application/json, and the path leads to a directory, return the content of a directory as JSON.
Reason: add a bot an easier way to parse directory content.
Similar to: NGINX has autoindex_format option that has a json argument which makes NGINX return directory listings in a json format. The returned format is a list of maps, each map contains name, type (directory/file), mtime (modify time) and files also contain size in bytes, for example: