Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto registers routes for telescope (#767)
* Auto registers routes for telescope * fix: 调整路由注册顺序,确保视图路由在 API 路由之后添加 * fix: 调整静态文件路由注册顺序,确保其在视图路由之后添加 * fix: 更新视图控制器以使用配置路径,调整静态文件链接 * Fix target path * Fix * Add ignore paths * Removed useless configs * fix: update LogAspect and DbQueryListener to ignore 'telescope' in log messages and SQL queries * refactor: streamline response handling in RequestHandledListener by removing unnecessary content limit checks * fix: update ViewController to replace template path placeholder with configured path * Change view * refactor: simplify show method in ViewController to directly return index method * refactor: optimize caching and template rendering in ViewController by using a closure for lazy loading * refactor: improve request handling and configuration in Telescope by optimizing ignore paths and restructuring request processing logic * refactor: enhance ignore path handling in TelescopeConfig by using Str::contains for improved path matching * refactor: simplify ignore path matching in TelescopeConfig by replacing Str::contains with Str::is for improved clarity and functionality * refactor: enhance request processing in RequestHandledListener by adding type hinting for event parameter and optimizing request validation logic * fix: improve request validation in RequestHandledListener by adding a check for null requests * fix: replace get with post * Ignore redis commands with telescope * support `/telescope` route * support `/telescope/`and `/telescope` routes * Add check batchId logic * Revert "refactor: optimize caching and template rendering in ViewController by using a closure for lazy loading" This reverts commit 27b6ede9c74531ab6a84dab604db7202e6ab4516. * default record when key does not exist * Optimized fetchRecording --------- Co-authored-by: Deeka Wong <[email protected]> Co-authored-by: guandeng <[email protected]>
- Loading branch information