mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-09 23:27:51 +00:00
38 lines
975 B
Python
38 lines
975 B
Python
from django.urls import re_path
|
|
|
|
from .views import (
|
|
TablesView,
|
|
TableView,
|
|
OrderTablesView,
|
|
AsyncCreateTableView,
|
|
AsyncTableImportView,
|
|
AsyncDuplicateTableView,
|
|
)
|
|
|
|
|
|
app_name = "baserow.contrib.database.api.tables"
|
|
|
|
urlpatterns = [
|
|
re_path(r"database/(?P<database_id>[0-9]+)/$", TablesView.as_view(), name="list"),
|
|
re_path(
|
|
r"database/(?P<database_id>[0-9]+)/async/$",
|
|
AsyncCreateTableView.as_view(),
|
|
name="async_create",
|
|
),
|
|
re_path(
|
|
r"database/(?P<database_id>[0-9]+)/order/$",
|
|
OrderTablesView.as_view(),
|
|
name="order",
|
|
),
|
|
re_path(
|
|
r"(?P<table_id>[0-9]+)/duplicate/async/$",
|
|
AsyncDuplicateTableView.as_view(),
|
|
name="async_duplicate",
|
|
),
|
|
re_path(r"(?P<table_id>[0-9]+)/$", TableView.as_view(), name="item"),
|
|
re_path(
|
|
r"(?P<table_id>[0-9]+)/import/async/$",
|
|
AsyncTableImportView.as_view(),
|
|
name="import_async",
|
|
),
|
|
]
|