Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue_django_test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周田
vue_django_test
Commits
10891081
Commit
10891081
authored
Aug 24, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复 url 链接问题
parent
d836256a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
urls.py
device_communication/urls.py
+9
-6
xdc.sqlite
xdc.sqlite
+0
-0
No files found.
device_communication/urls.py
View file @
10891081
from
django.urls
import
re_path
from
rest_framework.routers
import
DefaultRouter
from
.
import
views
router
=
DefaultRouter
()
router
.
register
(
'device_communication/communicate'
,
views
.
DeviceCommunicationParameterViewSet
)
router
.
register
(
'device_communication/simulate_communicate'
,
views
.
SimulateDeviceCommunicationParameterViewSet
)
urlpatterns
=
[
re_path
(
r'^device_communication/$'
,
views
.
get_protocol_names
),
re_path
(
r'^device_communication/protocol_performance/$'
,
views
.
get_protocol_field_names
),
re_path
(
r'^device_communication/set_communication_to_devinfo_table/$'
,
views
.
set_communication_to_devinfo_table
),
re_path
(
r'^device_communication/communicate/$'
,
views
.
DeviceCommunicationParameterViewSet
.
as_view
(
{
'get'
:
'list'
,
'post'
:
'create'
,
'delete'
:
'destroy'
})),
re_path
(
r'^device_communication/simulate_communicate/$'
,
views
.
SimulateDeviceCommunicationParameterViewSet
.
as_view
(
{
'get'
:
'list'
,
'post'
:
'create'
,
'delete'
:
'destroy'
})),
]
urlpatterns
+=
router
.
urls
xdc.sqlite
View file @
10891081
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment