# abac/urls.py from django.contrib.auth import views as auth_views from django.urls import path from .views import ( landing_page, logout_view, upload_file_view, create_user_view, upload_certificate_view, file_detail, create_rule, rule_detail, user_detail_view, delete_rule_attribute, download_file, user_management, upload_public_key, hierarchy_view, trusted_authorities, delete_authority, verify_decryption ) app_name = 'abac' urlpatterns = [ path('', landing_page, name='home'), path('login/', auth_views.LoginView.as_view(template_name='login.html', success_url='/'), name='login'), path('logout/', logout_view, name='logout'), path('upload-file/', upload_file_view, name='upload_file'), path('create-user/', create_user_view, name='create_user'), path('upload-certificate/', upload_certificate_view, name='upload_certificate'), path('files//', file_detail, name='file_detail'), path('files//create_rule/', create_rule, name='create_rule'), path('rules///',rule_detail, name='rule_detail'), path('user//', user_detail_view, name='user_details'), path('rules///delete//', delete_rule_attribute, name='delete_rule_attribute'), path('downloader//', download_file, name='download_file'), path('user_management/', user_management, name='user_management'), path('user//upload-public-key', upload_public_key, name='upload_public_key'), path('visualization/hierarchical', hierarchy_view, name='hierarchy_vis'), path('trusted-authorities', trusted_authorities, name="trusted_authorities"), path('trusted-authorities/delete//', delete_authority, name='delete_authority'), path('verify_decryption', verify_decryption, name='verify_decryption') ]