Browse Source

stripping down to a "base" product

develop
Rob Colbert 2 years ago
parent
commit
d29132dc77
  1. 82
      config/limiter.js

82
config/limiter.js

@ -70,38 +70,6 @@ module.exports = {
},
},
/*
* CryptoExchangeController
*/
cryptoExchange: {
getRateGraph: {
total: 10,
expire: ONE_MINUTE,
message: 'You are loading exchange rate graphs too quickly',
},
getCurrentRates: {
total: 10,
expire: ONE_MINUTE,
message: 'You are loading cryptocurrency exchange rates too quickly',
},
},
/*
* DashboardController
*/
dashboard: {
getEpisodeView: {
total: 15,
expire: ONE_MINUTE,
message: 'You are loading the dashboard episode view too quickly',
},
getHome: {
total: 15,
expire: ONE_MINUTE,
message: 'You are loading the publisher dashboard too quickly',
},
},
/*
* HomeController
*/
@ -143,54 +111,6 @@ module.exports = {
}
},
/*
* NewsletterController
*/
newsletter: {
getView: {
total: 5,
expire: ONE_MINUTE,
message: 'You are reading newsletters too quickly',
},
getIndex: {
total: 60,
expire: ONE_MINUTE,
message: 'You are fetching newsletters too quickly',
},
},
/*
* PageController
*/
page: {
getView: {
total: 5,
expire: ONE_MINUTE,
message: 'You are reading pages too quickly',
},
},
/*
* PostController
*/
post: {
getComments: {
total: 20,
expire: ONE_MINUTE,
message: 'You are reading comments too quickly',
},
getView: {
total: 5,
expire: ONE_MINUTE,
message: 'You are reading posts too quickly',
},
getIndex: {
total: 60,
expire: ONE_MINUTE,
message: 'You are refreshing too quickly',
},
},
/*
* UserController
*/
@ -232,4 +152,4 @@ module.exports = {
expire: ONE_MINUTE,
message: 'You are loading these pages too quickly',
},
};
};
Loading…
Cancel
Save