first commit
This commit is contained in:
commit
3c0479faf0
169 files changed
+27617
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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> {}
|
||||
}
|
||||
Reference in new issue
Block a user