aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-12-10 11:10:05 +0100
committerNoah Loomans <noahloomans@gmail.com>2017-12-10 11:10:05 +0100
commit7bd3b6766536e33146bb55506c79619a1ab7d3b3 (patch)
treee5e53fa944d2c86143d1924b82de504c9dc76224 /src/server
parentb7fab958633456346d67c9cdd68eef05572882ab (diff)
Move reducers and actions into seperate folders
Diffstat (limited to 'src/server')
-rw-r--r--src/server/routes/getSchedule.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/routes/getSchedule.js b/src/server/routes/getSchedule.js
index 7850918..9c31d66 100644
--- a/src/server/routes/getSchedule.js
+++ b/src/server/routes/getSchedule.js
@@ -67,7 +67,12 @@ router.get('/:type/:value', function (req, res, next) {
return
}
- const utf8Body = iconv.decode(data.body, 'ISO-8859-1')
+ let utf8Body = iconv.decode(data.body, 'ISO-8859-1')
+
+ users.forEach(function (user) {
+ let utf8Body = utf8Body.replace(/oko/g, "test")
+ })
+
res.status(data.statusCode).end(utf8Body)
})
})