Merge pull request #935 from zanllp/fix/api-update-exif-permission
fix(api): add write permission requirement for update_exif endpointi18n/update-extra-meta-info-hint
commit
059a60db29
|
|
@ -877,7 +877,7 @@ def infinite_image_browsing_api(app: FastAPI, **kwargs):
|
||||||
path: str
|
path: str
|
||||||
exif: str
|
exif: str
|
||||||
|
|
||||||
@app.post(api_base + "/update_exif", dependencies=[Depends(verify_secret)])
|
@app.post(api_base + "/update_exif", dependencies=[Depends(verify_secret), Depends(write_permission_required)])
|
||||||
async def update_exif(req: UpdateExifReq):
|
async def update_exif(req: UpdateExifReq):
|
||||||
"""更新图片/视频的 exif 信息"""
|
"""更新图片/视频的 exif 信息"""
|
||||||
conn = DataBase.get_conn()
|
conn = DataBase.get_conn()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue