19 lines
443 B
Python
19 lines
443 B
Python
# -*- coding: utf-8 -*-
|
|
# bthlabs-jsonrpc-django | (c) 2022-present Tomek Wójcik | MIT License
|
|
from __future__ import annotations
|
|
|
|
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()),
|
|
]
|