Comments (4)
http://localhost:8000/xxx?f=json
return json
return regular html(just like it is now)
from gohttpserver.
try to use chrome debug tools to see the rest api.
from gohttpserver.
Perfect, well done.
http://xxxxx.com:8000/-/json/?_=1545072048246
will give you a nice json response. as
nice and well done.
`
{
"auth": {
"upload": false,
"delete": false,
"users": null,
"AccessTables": null
},
"files": [
{
"name": "City of Costa Mesa",
"path": "City of Costa Mesa",
"type": "dir",
"size": 58084919,
"mtime": 1544829343544
},
{
"name": "Los Angeles County Public Work/landrecords",
"path": "Los Angeles County Public Work/landrecords",
"type": "dir",
"size": 678440673,
"mtime": 1544827660045
},
{
"name": "Los Angeles County Regional Planning",
"path": "Los Angeles County Regional Planning",
"type": "dir",
"size": 638026825,
"mtime": 1544816016211
},
{
"name": "Los Angeles Public Work/Bureau of Engineering",
"path": "Los Angeles Public Work/Bureau of Engineering",
"type": "dir",
"size": 21696026490,
"mtime": 1544824661671
},
{
"name": "config.yml",
"path": "config.yml",
"type": "file",
"size": 90,
"mtime": 1544816316334
}
]
}
`
from gohttpserver.
The response json have path, it is full path relative to home, very nice, well done.
`
{
"auth": {
"upload": false,
"delete": false,
"users": null,
"AccessTables": null
},
"files": [
{
"name": "Annexation",
"path": "City of Costa Mesa/Annexation",
"type": "dir",
"size": 2810296,
"mtime": 1544829343447
},
{
"name": "general",
"path": "City of Costa Mesa/general",
"type": "dir",
"size": 55274623,
"mtime": 1544829344940
}
]
}
`
from gohttpserver.
Related Issues (20)
- gohttpserver有做性能测试吗,高并发场景能用吗 HOT 1
- docker arm 芯片不兼容
- 此处文件大小统计时,如果同目录下的两个文件夹有相同前缀,会导致统计重复
- dockerhub image outdated
- 怎样设置可以让访问gohttpserver页面的时候需要登录,而访问资源url的时候不需要添加账号密码
- 上传大文件发生内存泄漏 HOT 1
- [Feature request] Graceful stop & log export HOT 1
- openid对接问题
- 可以取消下载功能吗 HOT 1
- 访问带token限制的目录
- 可否增加https 证书自定义? HOT 1
- Suggest a little bit code modification to support latest version of package androidbinary and remove changepath of fafa-home due to it seems not working for my firefox browser.
- docker修改了一下配置文件,里面的文件都找不到了 HOT 1
- 内存泄露
- Supports Pages?
- 有没有办法浏览管理上传删除这些都是使用auth。 但下载不用鉴权啊
- 使用docker部署后,使用curl测试上传文件,提示 Upload forbidden HOT 1
- 分段下载支持吗? HOT 1
- harbor
- feature Request 在线文本编辑
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gohttpserver.