| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/erp/horilla_api/api_urls/asset/ |
Upload File : |
from django.urls import path, re_path
from ...api_views.asset.views import *
urlpatterns = [
re_path(
r"^asset-categories/(?P<pk>\d+)?$",
AssetCategoryAPIView.as_view(),
name="api-asset-category-detail",
),
re_path(
r"^asset-lots/(?P<pk>\d+)?$",
AssetLotAPIView.as_view(),
name="api-asset-lot-detail",
),
re_path(r"^assets/(?P<pk>\d+)?$", AssetAPIView.as_view(), name="api-asset-detail"),
re_path(
r"^asset-allocations/(?P<pk>\d+)?$",
AssetAllocationAPIView.as_view(),
name="api-asset-allocation-detail",
),
re_path(
r"^asset-requests/(?P<pk>\d+)?$",
AssetRequestAPIView.as_view(),
name="api-asset-request-detail",
),
path(
"asset-return/<int:pk>", AssetReturnAPIView.as_view(), name="api-asset-return"
),
path(
"asset-reject/<int:pk>", AssetRejectAPIView.as_view(), name="api-asset-reject"
),
path(
"asset-approve/<int:pk>",
AssetApproveAPIView.as_view(),
name="api-asset-approve",
),
]