Revert "Add an API endpoint for GETing server version"

This reverts commit b0d3d1edde.
This commit is contained in:
jmt-gh 2022-06-09 11:27:46 -07:00
parent b0d3d1edde
commit e740692ea8
2 changed files with 0 additions and 10 deletions

View file

@ -159,15 +159,6 @@ class MiscController {
res.json(downloads)
}
// GET: api/version
async getServerVersion(req, res) {
var version = {
serverVersion: this.db.serverSettings.version
}
return res.json(version)
}
// PATCH: api/settings (admin)
async updateServerSettings(req, res) {
if (!req.user.isAdminOrUp) {

View file

@ -202,7 +202,6 @@ class ApiRouter {
this.router.delete('/download/:id', MiscController.removeDownload.bind(this))
this.router.get('/downloads', MiscController.getDownloads.bind(this))
this.router.patch('/settings', MiscController.updateServerSettings.bind(this)) // Root only
this.router.get('/version', MiscController.getServerVersion.bind(this))
this.router.post('/purgecache', MiscController.purgeCache.bind(this)) // Root only
this.router.post('/authorize', MiscController.authorize.bind(this))
this.router.get('/search/covers', MiscController.findCovers.bind(this))