Add simple API endpoint to activate and deactivate a list

Access is restricted by IP for the list server. Once the migration is
done, we should probably remove the endpoint again.
This commit is contained in:
Magnus Hagander
2017-07-03 15:35:55 +01:00
parent 07199c7846
commit 20a0e178c5
3 changed files with 18 additions and 2 deletions

View File

@ -50,6 +50,7 @@ urlpatterns = patterns('',
(r'^community/lists/$', RedirectView.as_view(url='/list/', permanent=True)),
(r'^community/lists/subscribe/$', 'pgweb.lists.views.subscribe'),
(r'^community/lists/listinfo/$', 'pgweb.lists.views.listinfo'),
(r'^community/lists/activate/$', 'pgweb.lists.views.activate'),
(r'^community/survey/vote/(\d+)/$', 'pgweb.survey.views.vote'),
(r'^community/survey[/\.](\d+)(-.*)?/$', 'pgweb.survey.views.results'),
(r'^community/user-groups/$', 'pgweb.pugs.views.index'),