Buckets:
ktongue/docker_container / .cache /opencode /node_modules /@fastify /rate-limit /example /example-simple.mjs
| import fastify from 'fastify' | |
| import fastifyRateLimit from '../index.js' | |
| const server = fastify() | |
| await server.register(fastifyRateLimit, { | |
| global: true, | |
| max: 10000, | |
| timeWindow: '1 minute' | |
| }) | |
| server.get('/', (_request, reply) => { | |
| reply.send('Hello, world!') | |
| }) | |
| const start = async () => { | |
| try { | |
| await server.listen({ port: 3000 }) | |
| console.log('Server is running on port 3000') | |
| } catch (error) { | |
| console.error('Error starting server:', error) | |
| } | |
| } | |
| start() | |
Xet Storage Details
- Size:
- 486 Bytes
- Xet hash:
- ffa977cc9de3aa0e796adce80d5699d1badd9a81de1c3c6a940d635a57bdc3a4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.