# Path: repos/views.py
# def repo_list(request):
# def mirror_list(request):
#     def pre_reqs(arch, repotype):
#     def move_mirrors(repo):
# def mirror_detail(request, mirror_id):
# def mirror_delete(request, mirror_id):
# def mirror_edit(request, mirror_id):
# def repo_detail(request, repo_id):
# def repo_edit(request, repo_id):
# def repo_delete(request, repo_id):
# def repo_toggle_enabled(request, repo_id):
# def repo_toggle_security(request, repo_id):
# class RepositoryViewSet(viewsets.ModelViewSet):
# class MirrorViewSet(viewsets.ModelViewSet):
# class MirrorPackageViewSet(viewsets.ModelViewSet):


from django.urls import path
from repos import views
# Copyright 2012 VPAC, http://www.vpac.org
# Copyright 2013-2021 Marcus Furlong <furlongm@gmail.com>
#
# This file is part of Patchman.
#
# Patchman is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 only.
#
# Patchman is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Patchman. If not, see <http://www.gnu.org/licenses/>



app_name = 'repos'

urlpatterns = [
    path('', views.repo_list, name='repo_list'),
    path('<int:repo_id>/', views.repo_detail, name='repo_detail'),
    path('<int:repo_id>/toggle_enabled/', views.repo_toggle_enabled, name='repo_toggle_enabled'),  # noqa
    path('<int:repo_id>/toggle_security/', views.repo_toggle_security, name='repo_toggle_security'),  # noqa
    path('<int:repo_id>/edit/', views.repo_edit, name='repo_edit'),
    path('<int:repo_id>/delete/', views.repo_delete, name='repo_delete'),
    path('mirrors/', views.mirror_list, name='mirror_list'),

# Path: repos/views.py
# def repo_list(request):
# def mirror_list(request):
#     def pre_reqs(arch, repotype):
#     def move_mirrors(repo):
# def mirror_detail(request, mirror_id):
# def mirror_delete(request, mirror_id):
# def mirror_edit(request, mirror_id):
# def repo_detail(request, repo_id):
# def repo_edit(request, repo_id):
# def repo_delete(request, repo_id):
# def repo_toggle_enabled(request, repo_id):
# def repo_toggle_security(request, repo_id):
# class RepositoryViewSet(viewsets.ModelViewSet):
# class MirrorViewSet(viewsets.ModelViewSet):
# class MirrorPackageViewSet(viewsets.ModelViewSet):


# Path: repos/urls.py
from django.urls import path
from repos import views

# Copyright 2012 VPAC, http://www.vpac.org
# Copyright 2013-2021 Marcus Furlong <furlongm@gmail.com>
#
# This file is part of Patchman.
#
# Patchman is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 only.
#
# Patchman is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Patchman. If not, see <http://www.gnu.org/licenses/>



app_name = 'repos'

urlpatterns = [
    path('', views.repo_list, name='repo_list'),
    path('<int:repo_id>/', views.repo_detail, name='repo_detail'),
    path('<int:repo_id>/toggle_enabled/', views.repo_toggle_enabled, name='repo_toggle_enabled'),  # noqa
    path('<int:repo_id>/toggle_security/', views.repo_toggle_security, name='repo_toggle_security'),  # noqa
    path('<int:repo_id>/edit/', views.repo_edit, name='repo_edit'),
    path('<int:repo_id>/delete/', views.repo_delete, name='repo_delete'),
    path('mirrors/', views.mirror_list, name='mirror_list'),

    path('mirrors/mirror/<int:mirror_id>/', views.mirror_detail, name='mirror_detail'),  # noqa