mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +00:00
17 lines
439 B
JavaScript
17 lines
439 B
JavaScript
|
const routes = require('express').Router()
|
||
|
const utils = require('./../controllers/utilsController')
|
||
|
const config = require('./../config')
|
||
|
|
||
|
routes.get([
|
||
|
'/player/:identifier',
|
||
|
'/v/:identifier'
|
||
|
], async (req, res, next) => {
|
||
|
// Uploads identifiers parsing, etc., are strictly handled by client-side JS at src/js/player.js
|
||
|
return res.render('player', {
|
||
|
config,
|
||
|
versions: utils.versionStrings
|
||
|
})
|
||
|
})
|
||
|
|
||
|
module.exports = routes
|