mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 10:59:00 +00:00
24 lines
605 B
Python
24 lines
605 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
URLs for consumers app
|
|
"""
|
|
|
|
from django.urls import re_path
|
|
|
|
from .views import IndexView, DetailView, EnableView, DisableView
|
|
|
|
urlpatterns = [
|
|
re_path(r'^$',
|
|
IndexView.as_view(),
|
|
name='consumers-index'),
|
|
re_path(r'^(?P<consumer_id>[0-9a-z\-]+)$',
|
|
DetailView.as_view(),
|
|
name='consumers-detail'),
|
|
re_path(r'^(?P<consumer_id>[0-9a-z\-]+)/enable$',
|
|
EnableView.as_view(),
|
|
name='consumers-enable'),
|
|
re_path(r'^(?P<consumer_id>[0-9a-z\-]+)/disable$',
|
|
DisableView.as_view(),
|
|
name='consumers-disable'),
|
|
]
|