from rest_framework.routers import SimpleRouter
from .views import (TableAllDevCmdDefineView, TableDevCmdNamePollView, 
                    TableSoftLimitAngleView, TableXproAllDevinfoView)
from .views import test
from django.urls import re_path

router = SimpleRouter()
router.register(r'all_dev_cmd_define', TableAllDevCmdDefineView)
router.register(r'dev_cmd_name_poll', TableDevCmdNamePollView)
router.register(r'soft_limit_angle', TableSoftLimitAngleView)
router.register(r'xpro_all_devinfo', TableXproAllDevinfoView)

urlpatterns = [
    re_path(r'^test/$', test),
]


urlpatterns += router.urls
