Only handle directories.
Send json content type.