monkeytype/backend/constants/base-configuration.ts
Rizwan Mustafa a0d5392884
(Backend) Ability to make Quotes Favorite (#2826) rizwanmustafa
* Created API for making quotes fav

* Moved routes over to quotes

* Renamed favQuotes to favoriteQuotes

* Renamed routes

* Removed error to prevent confusion and panic

* Added regex check for quote id and added fav quote number check

* Some fixy

* Added configuration for max favorite quotes

* Added grouping

* Created variable for storing collection

* Changed variable name

* Changed variable name

* Fixed some problems

* Fixed bug

* Added length chekc for quoteId

* MOved routes over to user

* Renamed routes
2022-04-14 22:53:44 +02:00

37 lines
858 B
TypeScript

/**
* This is the base schema for the configuration of the API backend.
* To add a new configuration. Simply add it to this object.
* When changing this template, please follow the principle of "Secure by default" (https://en.wikipedia.org/wiki/Secure_by_default).
*/
const BASE_CONFIGURATION: MonkeyTypes.Configuration = {
maintenance: false,
quoteReport: {
enabled: false,
maxReports: 0,
contentReportLimit: 0,
},
quoteSubmit: {
enabled: false,
},
resultObjectHashCheck: {
enabled: false,
},
apeKeys: {
endpointsEnabled: false,
acceptKeys: false,
maxKeysPerUser: 0,
apeKeyBytes: 24,
apeKeySaltRounds: 5,
},
enableSavingResults: {
enabled: false,
},
useRedisForBotTasks: {
enabled: false,
},
favoriteQuotes: {
maxFavorites: 100,
},
};
export default BASE_CONFIGURATION;