mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 00:35:25 +08:00
* 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
37 lines
858 B
TypeScript
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;
|