module.exports = function(app) {
	app.get('/imu', (req, res, next) => {
		let db = app.get('db');
		let compass = db.collection('compass');

		if (compass !== undefined) {
			compass.find({}).toArray((err, docs) => {
				res.end(JSON.stringify(docs));
			});
		}
		else {
			res.end(JSON.stringify({
				status: 500,
				text: "cannot find 'compass' collection"
			}));
		}
	});
};

@@ -175,16 +175,21 @@
 %09compass
+%0A%09%09%09%09
 .find(%7B%7D
@@ -189,16 +189,66 @@
 find(%7B%7D)
+%0A%09%09%09%09.skip(compass.count() - 1)%0A%09%09%09%09.limit(1)%0A%09%09%09%09
 .toArray
@@ -265,16 +265,17 @@
 s) =%3E %7B%0A
+%09
 %09%09%09%09res.
@@ -297,20 +297,24 @@
 ify(docs
+%5B0%5D
 ));%0A
+%09
 %09%09%09%7D);%0A%09

Return only the last compass reading