Compare commits
1 Commits
63cd095f1b
...
34da3f8459
| Author | SHA1 | Date | |
|---|---|---|---|
| 34da3f8459 |
@@ -123,7 +123,7 @@ def ImportPlugins(app: FastAPI, plugin_dir:str = "Plugins") -> None:
|
||||
plugin = plugin_class()
|
||||
if plugin.is_enable_plugin() == False:
|
||||
continue
|
||||
router = plugin.execute(f"/{module_file}")
|
||||
router = plugin.execute(f"/{module_file.GetFullPath().replace(".py", '')}")
|
||||
if router:
|
||||
app.include_router(router, prefix=f"/api", tags=[plugin.get_plugin_tag()])
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user