Laravel Lumen,Swagger:SwaggeruiBundle不是定义的错误
我安装了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)
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论