ipfs/kubo

Gateway: client opt-in JSON responses for directory listing

Open

#7,552 建立於 2020年7月19日

在 GitHub 查看
 (7 留言) (2 反應) (0 負責人)Go (2,725 fork)batch import
P3effort/daysexp/intermediatehelp wantedkind/enhancementkind/featurestatus/readytopic/gateway

倉庫指標

Star
 (13,906 star)
PR 合併指標
 (平均合併 4天 2小時) (30 天內合併 28 個 PR)

描述

Followup to #7431, that was closed but had the valuable feature of accessing json manifest of folder

requests to a "folder", especially the root of a folder published to ipns such as http://bafzbeibxww7y6v5metkgmxeqkvls74uqvptbhommrb5b7xianigcicdvuy.ipns.localhost/ should be served the same response as https://ipfs.io/api/v0/ls?arg=bafzbeibxww7y6v5metkgmxeqkvls74uqvptbhommrb5b7xianigcicdvuy

IF the accept content type header is set to "application/json" that way there is no interference with existing gateway behaviour and with serving the index.html file at the root

貢獻者指南