diff --git a/client/frequency-list/index.html b/client/frequency-list/index.html new file mode 100644 index 00000000..f844a529 --- /dev/null +++ b/client/frequency-list/index.html @@ -0,0 +1,119 @@ + + + +
++ Choose a link below to view frequency lists for that subcategory: +
++ + The 100 most frequent answers in questions: + + + Back to all frequency lists + +
+# | +Answer | +Frequency | +
---|
Check out your geoword category stats by going to the stats page for a packet!
++ Check out frequency lists for the qbreader database here! +
diff --git a/routes/frequency-list.js b/routes/frequency-list.js new file mode 100644 index 00000000..fc420a6b --- /dev/null +++ b/routes/frequency-list.js @@ -0,0 +1,12 @@ +import { Router } from 'express'; +const router = Router(); + +router.get('/', (req, res) => { + res.sendFile('index.html', { root: './client/frequency-list' }); +}); + +router.get('/:subcategory', (req, res) => { + res.sendFile('subcategory.html', { root: './client/frequency-list' }); +}); + +export default router; diff --git a/routes/index.js b/routes/index.js index f1bbf289..7af07da1 100644 --- a/routes/index.js +++ b/routes/index.js @@ -5,6 +5,7 @@ import apiDocsRouter from './api-docs.js'; import authRouter from './auth/index.js'; import backupsRouter from './backups.js'; import databaseRouter from './database.js'; +import frequencyListRouter from './frequency-list.js'; import geowordRouter from './geoword/index.js'; import multiplayerRouter from './multiplayer.js'; import settingsRouter from './settings.js'; @@ -97,6 +98,7 @@ router.use('/api-docs', apiDocsRouter); router.use('/auth', authRouter); router.use('/backups', backupsRouter); router.use('/db', databaseRouter); +router.use('/frequency-list', frequencyListRouter); router.use('/geoword', geowordRouter); router.use('/multiplayer', multiplayerRouter); router.use('/settings', settingsRouter);