walkor / webman-framework

webman-framework
116 stars 57 forks source link

Update App.php #77

Closed 2329697501 closed 1 year ago

2329697501 commented 1 year ago

增加配置选项,插件url前缀可以使用配置自定义

walkor commented 1 year ago

感谢pr 这个pr先搁置,前缀可自定义会导致一些插件不兼容问题,可以预见,大部分插件url都会固定写死以app为前缀。 还有配置感觉 app.plugin_url_suffix 改为 app.plugin_url_prefix更合理些。

2329697501 commented 1 year ago

感谢回复,那先这样吧,感觉可以定义一个函数来判断,方便日后维护

2329697501 commented 1 year ago

突然想到这部分需要可以靠nginx进行完成?可以出个nginx重写的配置,放到文档吗。。。

walkor commented 1 year ago

欢迎pr文档