diff --git a/server/controllers/MiscController.js b/server/controllers/MiscController.js index 19f280e27..d16c9c8f7 100644 --- a/server/controllers/MiscController.js +++ b/server/controllers/MiscController.js @@ -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) { diff --git a/server/routers/ApiRouter.js b/server/routers/ApiRouter.js index 5e106828c..e9b88c8c7 100644 --- a/server/routers/ApiRouter.js +++ b/server/routers/ApiRouter.js @@ -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))