// -*- tab-width: 2 -*-
var express = require('express')
var router = express.Router()

/* GET home page. */
router.get('/', function (req, res) {
  res.render('admin_home')
})

router.get('/:competitionid', function (req, res) {
  res.render('competition_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/teams', function (req, res) {
  res.render('team_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/runs', function (req, res) {
  res.render('run_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/rounds', function (req, res) {
  res.render('round_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/line/editor', function (req, res) {
  res.render('line_editor', {id : req.params.competitionid})
})

router.get('/:competitionid/fields', function (req, res) {
  res.render('field_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/line/tilesets', function (req, res) {
  res.render('tileset_admin', {id : req.params.competitionid})
})

module.exports = router

// -*- tab-width: 2 -*-
var express = require('express')
var router = express.Router()

/* GET home page. */
router.get('/', function (req, res) {
  res.render('admin_home')
})

router.get('/:competitionid', function (req, res) {
  res.render('competition_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/teams', function (req, res) {
  res.render('team_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/runs', function (req, res) {
  res.render('run_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/rounds', function (req, res) {
  res.render('round_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/fields', function (req, res) {
  res.render('field_admin', {id : req.params.competitionid})
})

router.get('/:competitionid/line/tilesets', function (req, res) {
  res.render('tileset_admin', {id : req.params.competitionid})
})

module.exports = router

--- 
+++ 
@@ -23,6 +23,10 @@
   res.render('round_admin', {id : req.params.competitionid})
 })
 
+router.get('/:competitionid/line/editor', function (req, res) {
+  res.render('line_editor', {id : req.params.competitionid})
+})
+
 router.get('/:competitionid/fields', function (req, res) {
   res.render('field_admin', {id : req.params.competitionid})
 })
Add route for line map editor
