Laravel Lumen,Swagger:SwaggeruiBundle不是定义的错误

发布于 2025-02-03 12:35:49 字数 682 浏览 2 评论 0原文

我安装了SwaggerLume,它在'/docs'的路径上很好地工作,但它不适合'/api/codedation'的路径,给了我一个错误如下。

- Uncaught ReferenceError: SwaggerUIBundle is not defined
    at window.onload (documentation:75:20)
- Uncaught SyntaxError: Unexpected token '<' (at swagger-ui-standalone-preset.js?v=9c0d82f1bb63b730b3470d714fa36c1a:1:1)
- Uncaught SyntaxError: Unexpected token '<' (at swagger-ui-bundle.js?v=9c0d82f1bb63b730b3470d714fa36c1a:1:1)

错误

我有swagger> skagger-ui-assets文件夹,但是当我尝试路由/api/documentation时,它给了我一个空屏幕。

I installed SwaggerLume and it works well on the path of '/docs', but it doesn't with the path of '/api/documentation', giving me an error like below.

- Uncaught ReferenceError: SwaggerUIBundle is not defined
    at window.onload (documentation:75:20)
- Uncaught SyntaxError: Unexpected token '<' (at swagger-ui-standalone-preset.js?v=9c0d82f1bb63b730b3470d714fa36c1a:1:1)
- Uncaught SyntaxError: Unexpected token '<' (at swagger-ui-bundle.js?v=9c0d82f1bb63b730b3470d714fa36c1a:1:1)

The error

I have the swagger-ui-assets in my public folder but it's giving me an empty screen when I try to route /api/documentation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文