mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
24 lines
514 B
Python
24 lines
514 B
Python
# coding=utf-8
|
||
"""
|
||
@project: MaxKB
|
||
@Author:虎虎
|
||
@file: retrieval_urls.py
|
||
@date:2025/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()),
|
||
|
||
]
|