去掉白名单装饰器的jingrow前缀
This commit is contained in:
parent
46bd967786
commit
aceca1e49d
2
.gitignore
vendored
2
.gitignore
vendored
@ -26,7 +26,7 @@ test/
|
||||
|
||||
|
||||
# 忽略所有 文件夹
|
||||
**/frontend/public/files
|
||||
**/frontend/public/files/
|
||||
**/jfile/files/
|
||||
**/output/
|
||||
**/__pycache__/
|
||||
|
||||
@ -284,7 +284,7 @@ export const downloadImageToLocal = async (
|
||||
): Promise<{ success: boolean; local_path?: string; error?: string }> => {
|
||||
try {
|
||||
const response = await axios.post(
|
||||
`/jingrow/jingrow.utils.fs.download_image_to_local`,
|
||||
`/jingrow.utils.fs.download_image_to_local`,
|
||||
{
|
||||
image_url: imageUrl,
|
||||
filename: filename
|
||||
|
||||
@ -62,7 +62,7 @@ def create_app():
|
||||
include_routers_from_package(app, "jingrow.api")
|
||||
|
||||
# 手动注册动态路由(最后注册,避免冲突)
|
||||
app.include_router(router, prefix="/jingrow")
|
||||
app.include_router(router)
|
||||
|
||||
return app
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user