def ready(self): from taiga.base import routers from taiga.urls import urlpatterns from .api import UnratedViewSet router = routers.DefaultRouter(trailing_slash=False) router.register(r"unrated", UnratedViewSet, base_name="unrated") urlpatterns.append(url(r'^api/v1/', include(router.urls)))
def ready(self): from taiga.base import routers from taiga.urls import urlpatterns from .api import HipChatHookViewSet router = routers.DefaultRouter(trailing_slash=False) router.register(r"hipchat", HipChatHookViewSet, base_name="hipchat") urlpatterns.append(url(r'^api/v1/', include(router.urls))) connect_taiga_contrib_hipchat_signals()
def ready(self): from taiga.base import routers from taiga.urls import urlpatterns from .api import DingTalkHookViewSet router = routers.DefaultRouter(trailing_slash=False) router.register(r"dingtalk", DingTalkHookViewSet, base_name="dingtalk") urlpatterns.append(url(r'^api/v1/', include(router.urls))) connect_taiga_contrib_dingtalk_signals()
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program 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 Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from taiga.base import routers router = routers.DefaultRouter(trailing_slash=False) # Locales from taiga.locale.api import LocalesViewSet router.register(r"locales", LocalesViewSet, base_name="locales") # Users & Roles from taiga.auth.api import AuthViewSet from taiga.users.api import UsersViewSet from taiga.users.api import RolesViewSet router.register(r"auth", AuthViewSet, base_name="auth") router.register(r"users", UsersViewSet, base_name="users") router.register(r"roles", RolesViewSet, base_name="roles")