|
|
@@ -79,12 +79,6 @@ app.prepare().then(() => {
|
|
|
app.render(req, res, '/verify', req.user)
|
|
|
);
|
|
|
|
|
|
- // Disabled service worker because of multiple requests
|
|
|
- // Resulting in duplicated visist count
|
|
|
- server.get('/sw.js', (_req, res) => {
|
|
|
- res.sendFile(`${__dirname}/offline/sw.js`);
|
|
|
- });
|
|
|
-
|
|
|
/* User and authentication */
|
|
|
server.post('/api/auth/signup', validationCriterias, validateBody, catchErrors(auth.signup));
|
|
|
server.post('/api/auth/login', validationCriterias, validateBody, auth.authLocal, auth.login);
|