{"size": 5593, "ext": "js", "max_stars_repo_path": "app/routes.js", "max_stars_repo_name": "danleech-defra/check-flood-risk-assets", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/routes.js", "max_issues_repo_name": "danleech-defra/check-flood-risk-assets", "max_issues_repo_issues_event_min_datetime": "2021-03-04T15:27:57.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-04T15:28:02.000Z", "max_forks_repo_path": "app/routes.js", "max_forks_repo_name": "danleech-defra/service-refresh-assets", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 26.7607655502, "max_line_length": 56, "alphanum_fraction": 0.6463436438}
const express = require('express')
const router = express.Router()

// Add your assets here
router.get('/asset-1', function (req, res) {
  res.render('assets/asset-1')
})
router.get('/asset-2', function (req, res) {
  res.render('assets/asset-2')
})
router.get('/asset-3', function (req, res) {
  res.render('assets/asset-3')
})
router.get('/asset-5', function (req, res) {
  res.render('assets/asset-5')
})
router.get('/asset-5b', function (req, res) {
  res.render('assets/asset-5b')
})
router.get('/asset-5c', function (req, res) {
  res.render('assets/asset-5c')
})
router.get('/asset-5d', function (req, res) {
  res.render('assets/asset-5d')
})
router.get('/asset-5e', function (req, res) {
  res.render('assets/asset-5e')
})
router.get('/asset-5f', function (req, res) {
  res.render('assets/asset-5f')
})
router.get('/asset-6', function (req, res) {
  res.render('assets/asset-6')
})
router.get('/asset-6b', function (req, res) {
  res.render('assets/asset-6b')
})
router.get('/asset-7', function (req, res) {
  res.render('assets/asset-7')
})
router.get('/asset-7b', function (req, res) {
  res.render('assets/asset-7b')
})
router.get('/asset-7c', function (req, res) {
  res.render('assets/asset-7c')
})
router.get('/asset-7d', function (req, res) {
  res.render('assets/asset-7d')
})
router.get('/asset-7e', function (req, res) {
  res.render('assets/asset-7e')
})
router.get('/asset-7f', function (req, res) {
  res.render('assets/asset-7f')
})
router.get('/asset-8', function (req, res) {
  res.render('assets/asset-8')
})
router.get('/asset-8b', function (req, res) {
  res.render('assets/asset-8b')
})
router.get('/asset-8c', function (req, res) {
  res.render('assets/asset-8c')
})
router.get('/asset-8d', function (req, res) {
  res.render('assets/asset-8d')
})
router.get('/asset-8e', function (req, res) {
  res.render('assets/asset-8e')
})
router.get('/asset-8f', function (req, res) {
  res.render('assets/asset-8f')
})
router.get('/asset-8g', function (req, res) {
  res.render('assets/asset-8g')
})
router.get('/asset-8h', function (req, res) {
  res.render('assets/asset-8h')
})
router.get('/asset-9', function (req, res) {
  res.render('assets/asset-9')
})
router.get('/asset-10', function (req, res) {
  res.render('assets/asset-10')
})
router.get('/fis-387-draft', function (req, res) {
  res.render('assets/fis-387-draft')
})
router.get('/asset-11a', function (req, res) {
  res.render('assets/asset-11a')
})
router.get('/asset-11b', function (req, res) {
  res.render('assets/asset-11b')
})
router.get('/asset-11c', function (req, res) {
  res.render('assets/asset-11c')
})
router.get('/asset-11d', function (req, res) {
  res.render('assets/asset-11d')
})
router.get('/asset-11e', function (req, res) {
  res.render('assets/asset-11e')
})
router.get('/asset-11f', function (req, res) {
  res.render('assets/asset-11f')
})
router.get('/asset-11g', function (req, res) {
  res.render('assets/asset-11g')
})
router.get('/asset-12', function (req, res) {
  res.render('assets/asset-12')
})
router.get('/asset-14', function (req, res) {
  res.render('assets/asset-14')
})
router.get('/asset-14b', function (req, res) {
  res.render('assets/asset-14b')
})
router.get('/asset-15', function (req, res) {
  res.render('assets/asset-15')
})
router.get('/asset-16', function (req, res) {
  res.render('assets/asset-16')
})
router.get('/asset-16b', function (req, res) {
  res.render('assets/asset-16b')
})
router.get('/asset-17', function (req, res) {
  res.render('assets/asset-17')
})
router.get('/asset-18', function (req, res) {
  res.render('assets/asset-18')
})
/*
router.get('/asset-19', function (req, res) {
  res.render('assets/asset-19')
})
*/
router.get('/asset-20', function (req, res) {
  res.render('assets/asset-20')
})
router.get('/asset-20b', function (req, res) {
  res.render('assets/asset-20b')
})
router.get('/asset-21', function (req, res) {
  res.render('assets/asset-21')
})
router.get('/asset-22', function (req, res) {
  res.render('assets/asset-22')
})
router.get('/asset-23', function (req, res) {
  res.render('assets/asset-23')
})
router.get('/asset-23b', function (req, res) {
  res.render('assets/asset-23b')
})
router.get('/asset-24', function (req, res) {
  res.render('assets/asset-24')
})
router.get('/asset-24b', function (req, res) {
  res.render('assets/asset-24b')
})
router.get('/asset-25', function (req, res) {
  res.render('assets/asset-25')
})
router.get('/asset-26', function (req, res) {
  res.render('assets/asset-26')
})
router.get('/asset-27', function (req, res) {
  res.render('assets/asset-27')
})
router.get('/asset-28', function (req, res) {
  res.render('assets/asset-28')
})
router.get('/asset-29', function (req, res) {
  res.render('assets/asset-29')
})
router.get('/asset-29b', function (req, res) {
  res.render('assets/asset-29b')
})
// Icons
router.get('/icons', function (req, res) {
  res.render('assets/icons')
})

// API routes
router.get('/api/warnings.geojson', (req, res) => {
  const warnings = require('./data/warnings-geojson.js')
  res.json(warnings)
})
router.get('/api/stations.geojson', (req, res) => {
  const stations = require('./data/stations-geojson.js')
  res.json(stations)
})
router.get('/api/rainfall.geojson', (req, res) => {
  const rainfall = require('./data/rainfall-geojson.js')
  res.json(rainfall)
})
router.get('/api/places.geojson', (req, res) => {
  const places = require('./data/places-geojson.js')
  res.json(places)
})
router.get('/api/outlook.geojson', (req, res) => {
  const outlook = require('./data/outlook-geojson.js')
  res.json(outlook)
})

module.exports = router
