Add flag that can disable plans page

This commit is contained in:
James Allen 2018-06-06 15:41:13 +01:00
parent ce60e6941c
commit 034e50760e

View file

@ -9,6 +9,7 @@ module.exports =
apply: (webRouter, privateApiRouter, publicApiRouter) ->
return unless Settings.enableSubscriptions
if !Settings.disablePlansPage
webRouter.get '/user/subscription/plans', SubscriptionController.plansPage
webRouter.get '/user/subscription', AuthenticationController.requireLogin(), SubscriptionController.userSubscriptionPage