2022-06-04 08:41:53 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2024-01-15 20:20:10 +00:00
|
|
|
# bthlabs-jsonrpc-django | (c) 2022-present Tomek Wójcik | MIT License
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2022-06-04 08:41:53 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from bthlabs_jsonrpc_django import JSONRPCView, is_authenticated
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path(
|
|
|
|
'rpc/private',
|
|
|
|
JSONRPCView.as_view(
|
|
|
|
auth_checks=[is_authenticated],
|
|
|
|
namespace='private',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
path('rpc', JSONRPCView.as_view()),
|
|
|
|
]
|