MaxKB/apps/oss/retrieval_urls.py
wxg0103 9d4b2bf010
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
feat: enhance image and video handling by supporting URLs and file IDs
2025-11-18 18:27:11 +08:00

24 lines
514 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding=utf-8
"""
@project: MaxKB
@Author虎虎
@file retrieval_urls.py
@date2025/7/2 19:01
@desc:
"""
from django.urls import re_path
from . import views
app_name = 'oss'
urlpatterns = [
re_path(rf'^(.*)/oss/file/(?P<file_id>[\w-]+)/?$',
views.FileRetrievalView.as_view()),
re_path(rf'oss/file/(?P<file_id>[\w-]+)/?$',
views.FileRetrievalView.as_view()),
re_path(rf'^/oss/get_url/(?P<url>[\w-]+)?$',
views.GetUrlView.as_view()),
]