mirror of
https://github.com/woodchen-ink/random-api-go.git
synced 2025-07-18 05:42:01 +08:00
- Updated the metrics API endpoint from '/metrics' to '/api/metrics' for better organization. - Added data validation to ensure the metrics data received is an object, enhancing error handling. - Refactored the updateMetricsDisplay function to dynamically create metric items, improving the display of metrics. - Implemented HTML escaping for metric keys and values to prevent XSS vulnerabilities. - Cleared existing content in the metrics container before updating, ensuring a clean display.
Random API
介绍,使用方法和更新记录: https://q58.org/t/topic/127
Random API 是一个用 Go 语言编写的简单而强大的随机图片/视频 API 服务。它允许用户通过配置文件轻松管理和提供随机媒体内容。
压测
贡献
欢迎贡献!请提交 pull request 或创建 issue 来提出建议和报告 bug。
许可
Languages
Go
50.9%
TypeScript
46.9%
CSS
1.6%
Dockerfile
0.4%
JavaScript
0.2%