From a129799faaec00f167e4cc4eb82c4c2c8b1d6913 Mon Sep 17 00:00:00 2001 From: David Fischer Date: Wed, 21 Feb 2018 11:03:09 -0800 Subject: [PATCH] Add a sustainability API from non-OSS code --- readthedocs/restapi/urls.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/readthedocs/restapi/urls.py b/readthedocs/restapi/urls.py index 9d6fbd19229..904ba6cef60 100644 --- a/readthedocs/restapi/urls.py +++ b/readthedocs/restapi/urls.py @@ -97,3 +97,12 @@ urlpatterns += api_search_urls except ImportError: pass + +try: + from readthedocsext.donate.restapi.urls import urlpatterns as sustainability_urls + + urlpatterns += [ + url(r'^sustainability/', include(sustainability_urls)), + ] +except ImportError: + pass