diff options
| author | Pitu <[email protected]> | 2017-02-01 19:55:00 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-02-01 19:55:00 -0300 |
| commit | f29f208e5240796274d02921cec6e9c74a20cb3a (patch) | |
| tree | 7579f17b096091892382ee84a3891a1518d4f04e /lolisafe.js | |
| parent | Something crawl told me to do (diff) | |
| download | host.fuwn.me-f29f208e5240796274d02921cec6e9c74a20cb3a.tar.xz host.fuwn.me-f29f208e5240796274d02921cec6e9c74a20cb3a.zip | |
Another thing crawl told me to do
Diffstat (limited to 'lolisafe.js')
| -rw-r--r-- | lolisafe.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lolisafe.js b/lolisafe.js index 0a500ae..ed6b824 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -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/' })) |