Commit d0100164 authored by Dennis Willers's avatar Dennis Willers 🏀

Add Test Get Request

parent 7c213ebe
Pipeline #410 passed with stages
in 2 minutes and 43 seconds
......@@ -188,9 +188,13 @@ function createRouter(db) {
}
};
const test = function test(req, res) {
res.header('Access-Control-Allow-Origin', "*").status(200).json({status: "Test valid!"});
};
// the routes are defined here
//Return all Sessions (Not neccesary)
router.get('/test', [test]);
router.post('/addMap', [hasMap, hasVote, getMapInfo]);
router.post('/getMapInfo', [getVote]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment