Another thing crawl told me to do

This commit is contained in:
Pitu 2017-02-01 19:55:00 -03:00
parent f56afcdd5c
commit f29f208e52

View File

@ -23,8 +23,8 @@ safe.use('/', express.static('./public'))
safe.use('/api', api)
let limiter = new rateLimit({ windowMs: 5000, max: 2 })
safe.use('/api/login', limiter)
safe.use('/api/register', limiter)
safe.use('/api/login/', limiter)
safe.use('/api/register/', limiter)
safe.get('/', (req, res, next) => res.sendFile('home.html', { root: './pages/' }))
safe.get('/faq', (req, res, next) => res.sendFile('faq.html', { root: './pages/' }))