forked from ungleich-public/dynamicweb
28 lines
No EOL
544 B
Python
28 lines
No EOL
544 B
Python
from django.urls import include, path
|
|
|
|
from rest_framework.urlpatterns import format_suffix_patterns
|
|
|
|
from .views import VmCreateView, VmDetailsView
|
|
|
|
|
|
app_name = "opennebula_api"
|
|
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"auth/",
|
|
include("rest_framework.urls", namespace="rest_framework"),
|
|
),
|
|
path(
|
|
"vms/",
|
|
VmCreateView.as_view(),
|
|
name="vm_create",
|
|
),
|
|
path(
|
|
"vms/<int:pk>/",
|
|
VmDetailsView.as_view(),
|
|
name="vm_details",
|
|
),
|
|
]
|
|
|
|
urlpatterns = format_suffix_patterns(urlpatterns) |