8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Separation of url according to app

This commit is contained in:
Maël Kervella 2018-04-24 16:22:56 +00:00
parent 187138f6e3
commit 59c48759f2

View file

@ -31,61 +31,61 @@ from . import views
router = DefaultRouter()
# COTISATIONS APP
router.register(r'factures', views.FactureViewSet)
router.register(r'ventes', views.VenteViewSet)
router.register(r'articles', views.ArticleViewSet)
router.register(r'banques', views.BanqueViewSet)
router.register(r'paiements', views.PaiementViewSet)
router.register(r'cotisations', views.CotisationViewSet)
router.register(r'cotisations/factures', views.FactureViewSet)
router.register(r'cotisations/ventes', views.VenteViewSet)
router.register(r'cotisations/articles', views.ArticleViewSet)
router.register(r'cotisations/banques', views.BanqueViewSet)
router.register(r'cotisations/paiements', views.PaiementViewSet)
router.register(r'cotisations/cotisations', views.CotisationViewSet)
# MACHINES APP
router.register(r'machines', views.MachineViewSet)
router.register(r'machinetypes', views.MachineTypeViewSet)
router.register(r'iptypes', views.IpTypeViewSet)
router.register(r'vlans', views.VlanViewSet)
router.register(r'nas', views.NasViewSet)
router.register(r'soa', views.SOAViewSet)
router.register(r'extensions', views.ExtensionViewSet)
router.register(r'mx', views.MxViewSet)
router.register(r'ns', views.NsViewSet)
router.register(r'txt', views.TxtViewSet)
router.register(r'srv', views.SrvViewSet)
router.register(r'interfaces', views.InterfaceViewSet)
router.register(r'ipv6lists', views.Ipv6ListViewSet)
router.register(r'domains', views.DomainViewSet)
router.register(r'iplists', views.IpListViewSet)
router.register(r'services', views.ServiceViewSet)
router.register(r'servicelinks', views.ServiceLinkViewSet, 'servicelink')
router.register(r'ouvertureportlists', views.OuverturePortListViewSet)
router.register(r'ouvertureports', views.OuverturePortViewSet)
router.register(r'machines/machines', views.MachineViewSet)
router.register(r'machines/machinetypes', views.MachineTypeViewSet)
router.register(r'machines/iptypes', views.IpTypeViewSet)
router.register(r'machines/vlans', views.VlanViewSet)
router.register(r'machines/nas', views.NasViewSet)
router.register(r'machines/soa', views.SOAViewSet)
router.register(r'machines/extensions', views.ExtensionViewSet)
router.register(r'machines/mx', views.MxViewSet)
router.register(r'machines/ns', views.NsViewSet)
router.register(r'machines/txt', views.TxtViewSet)
router.register(r'machines/srv', views.SrvViewSet)
router.register(r'machines/interfaces', views.InterfaceViewSet)
router.register(r'machines/ipv6lists', views.Ipv6ListViewSet)
router.register(r'machines/domains', views.DomainViewSet)
router.register(r'machines/iplists', views.IpListViewSet)
router.register(r'machines/services', views.ServiceViewSet)
router.register(r'machines/servicelinks', views.ServiceLinkViewSet, base_name='servicelink')
router.register(r'machines/ouvertureportlists', views.OuverturePortListViewSet)
router.register(r'machines/ouvertureports', views.OuverturePortViewSet)
# PREFERENCES APP
#router.register(r'optionaluser', views.OptionalUserSerializer)
#router.register(r'optionalmachine', views.OptionalMachineSerializer)
#router.register(r'optionaltopologie', views.OptionalTopologieSerializer)
#router.register(r'generaloption', views.GeneralOptionSerializer)
#router.register(r'serviceoption', views.ServiceOptionSerializer)
#router.register(r'assooption', views.AssoOptionSerializer)
#router.register(r'homeoption', views.HomeOptionSerializer)
#router.register(r'mailmessageoption', views.MailMessageOptionSerializer)
#router.register(r'preferences/optionaluser', views.OptionalUserSerializer)
#router.register(r'preferences/optionalmachine', views.OptionalMachineSerializer)
#router.register(r'preferences/optionaltopologie', views.OptionalTopologieSerializer)
#router.register(r'preferences/generaloption', views.GeneralOptionSerializer)
#router.register(r'preferences/serviceoption', views.ServiceOptionSerializer)
#router.register(r'preferences/assooption', views.AssoOptionSerializer)
#router.register(r'preferences/homeoption', views.HomeOptionSerializer)
#router.register(r'preferences/mailmessageoption', views.MailMessageOptionSerializer)
# TOPOLOGIE APP
router.register(r'stack', views.StackViewSet)
router.register(r'acesspoint', views.AccessPointViewSet)
router.register(r'switch', views.SwitchViewSet)
router.register(r'modelswitch', views.ModelSwitchViewSet)
router.register(r'constructorswitch', views.ConstructorSwitchViewSet)
router.register(r'switchbay', views.SwitchBayViewSet)
router.register(r'building', views.BuildingViewSet)
router.register(r'switchport', views.SwitchPortViewSet, 'switchport')
router.register(r'room', views.RoomViewSet)
router.register(r'topologie/stack', views.StackViewSet)
router.register(r'topologie/acesspoint', views.AccessPointViewSet)
router.register(r'topologie/switch', views.SwitchViewSet)
router.register(r'topologie/modelswitch', views.ModelSwitchViewSet)
router.register(r'topologie/constructorswitch', views.ConstructorSwitchViewSet)
router.register(r'topologie/switchbay', views.SwitchBayViewSet)
router.register(r'topologie/building', views.BuildingViewSet)
router.register(r'topologie/switchport', views.SwitchPortViewSet, base_name='switchport')
router.register(r'topologie/room', views.RoomViewSet)
# USERS APP
router.register(r'users', views.UserViewSet)
router.register(r'clubs', views.ClubViewSet)
router.register(r'adherents', views.AdherentViewSet)
router.register(r'serviceusers', views.ServiceUserViewSet)
router.register(r'schools', views.SchoolViewSet)
router.register(r'listrights', views.ListRightViewSet)
router.register(r'shells', views.ShellViewSet, 'shell')
router.register(r'bans', views.BanViewSet)
router.register(r'whitelists', views.WhitelistViewSet)
router.register(r'users/users', views.UserViewSet)
router.register(r'users/clubs', views.ClubViewSet)
router.register(r'users/adherents', views.AdherentViewSet)
router.register(r'users/serviceusers', views.ServiceUserViewSet)
router.register(r'users/schools', views.SchoolViewSet)
router.register(r'users/listrights', views.ListRightViewSet)
router.register(r'users/shells', views.ShellViewSet, base_name='shell')
router.register(r'users/bans', views.BanViewSet)
router.register(r'users/whitelists', views.WhitelistViewSet)
urlpatterns = [
url(r'^', include(router.urls)),