mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
killed project controller
This commit is contained in:
parent
5ac1b59a78
commit
0668dec65e
2 changed files with 0 additions and 45 deletions
|
@ -1,42 +0,0 @@
|
|||
User = require('../models/User').User
|
||||
Project = require('../models/Project').Project
|
||||
sanitize = require('sanitizer')
|
||||
path = require "path"
|
||||
logger = require('logger-sharelatex')
|
||||
_ = require('underscore')
|
||||
fs = require('fs')
|
||||
SecurityManager = require '../managers/SecurityManager'
|
||||
Settings = require('settings-sharelatex')
|
||||
projectCreationHandler = require '../Features/Project/ProjectCreationHandler'
|
||||
projectDuplicator = require('../Features/Project/ProjectDuplicator')
|
||||
projectDeleter = require("../Features/Project/ProjectDeleter")
|
||||
ProjectZipStreamManager = require '../Features/Downloads/ProjectZipStreamManager'
|
||||
metrics = require('../infrastructure/Metrics')
|
||||
TagsHandler = require('../Features/Tags/TagsHandler')
|
||||
SubscriptionLocator = require("../Features/Subscription/SubscriptionLocator")
|
||||
SubscriptionFormatters = require("../Features/Subscription/SubscriptionFormatters")
|
||||
FileStoreHandler = require("../Features/FileStore/FileStoreHandler")
|
||||
|
||||
module.exports = class ProjectController
|
||||
constructor: ()->
|
||||
|
||||
|
||||
startBufferingRequest: (req, res, next) ->
|
||||
req.bufferedChunks = []
|
||||
req.endEmitted = false
|
||||
bufferChunk = (chunk) -> req.bufferedChunks.push(chunk)
|
||||
req.on "data", bufferChunk
|
||||
endCallback = () -> req.endEmitted = true
|
||||
req.on "end", endCallback
|
||||
req.emitBufferedData = () ->
|
||||
logger.log chunks: @bufferedChunks.length, emittedEnd: @endEmitted, "emitting buffer chunks"
|
||||
@removeListener "data", bufferChunk
|
||||
while @bufferedChunks.length > 0
|
||||
@emit "data", @bufferedChunks.shift()
|
||||
@removeListener "end", endCallback
|
||||
@emit "end" if @endEmitted
|
||||
next()
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
UserController = require('./controllers/UserController')
|
||||
AdminController = require('./Features/ServerAdmin/AdminController')
|
||||
HomeController = require('./Features/StaticPages/HomeController')
|
||||
OldProjectController = require("./controllers/ProjectController")
|
||||
ProjectController = require("./Features/Project/ProjectController")
|
||||
ProjectApiController = require("./Features/Project/ProjectApiController")
|
||||
InfoController = require('./Features/StaticPages/InfoController')
|
||||
|
@ -46,8 +45,6 @@ module.exports = class Router
|
|||
constructor: (app, io, socketSessions)->
|
||||
app.use(app.router)
|
||||
|
||||
Project = new OldProjectController()
|
||||
|
||||
app.get '/', HomeController.index
|
||||
|
||||
app.get '/login', UserController.loginForm
|
||||
|
|
Loading…
Reference in a new issue