19 lines
463 B
TypeScript
19 lines
463 B
TypeScript
import { defineConfig, stores } from '@adonisjs/limiter'
|
|
import type { InferLimiters } from '@adonisjs/limiter/types'
|
|
|
|
/**
|
|
* A single instance of the dashboard runs: the memory store is enough.
|
|
*/
|
|
const limiterConfig = defineConfig({
|
|
default: 'memory',
|
|
stores: {
|
|
memory: stores.memory({}),
|
|
},
|
|
})
|
|
|
|
export default limiterConfig
|
|
|
|
declare module '@adonisjs/limiter/types' {
|
|
export interface LimitersList extends InferLimiters<typeof limiterConfig> {}
|
|
}
|