From 21a67ddab46ece5ec96188a98f19ea198bbb0fe7 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 13 Aug 2015 22:50:39 +0100 Subject: [PATCH] added deactivate old projects endpoint --- services/web/app/coffee/router.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/app/coffee/router.coffee b/services/web/app/coffee/router.coffee index 4d0c8279df..4ab506635e 100644 --- a/services/web/app/coffee/router.coffee +++ b/services/web/app/coffee/router.coffee @@ -35,6 +35,7 @@ WikiController = require("./Features/Wiki/WikiController") Modules = require "./infrastructure/Modules" RateLimiterMiddlewear = require('./Features/Security/RateLimiterMiddlewear') RealTimeProxyRouter = require('./Features/RealTimeProxy/RealTimeProxyRouter') +InactiveProjectController = require("./Features/InactiveData/InactiveProjectController") logger = require("logger-sharelatex") _ = require("underscore") @@ -135,6 +136,8 @@ module.exports = class Router apiRouter.get '/internal/project/:Project_id/zip', AuthenticationController.httpAuth, ProjectDownloadsController.downloadProject apiRouter.get '/internal/project/:project_id/compile/pdf', AuthenticationController.httpAuth, CompileController.compileAndDownloadPdf + apiRouter.get '/internal/deactivateOldProjects', AuthenticationController.httpAuth, InactiveProjectController.deactivateOldProjects + webRouter.get /^\/internal\/project\/([^\/]*)\/output\/(.*)$/, ((req, res, next) -> params =