mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Namespace the document route under /doc/
This commit is contained in:
parent
d1a85304d2
commit
c25b6b792d
2 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ module.exports = class Router
|
|||
webRouter.get '/project/download/zip', AuthorizationMiddlewear.ensureUserCanReadMultipleProjects, ProjectDownloadsController.downloadMultipleProjects
|
||||
|
||||
webRouter.get '/project/:project_id/labels', AuthorizationMiddlewear.ensureUserCanReadProject, AuthenticationController.requireLogin(), LabelsController.getAllLabels
|
||||
webRouter.get '/project/:project_id/:doc_id/labels', AuthorizationMiddlewear.ensureUserCanReadProject, AuthenticationController.requireLogin(), LabelsController.getLabelsForDoc
|
||||
webRouter.get '/project/:project_id/doc/:doc_id/labels', AuthorizationMiddlewear.ensureUserCanReadProject, AuthenticationController.requireLogin(), LabelsController.getLabelsForDoc
|
||||
|
||||
webRouter.get '/tag', AuthenticationController.requireLogin(), TagsController.getAllTags
|
||||
webRouter.post '/tag', AuthenticationController.requireLogin(), TagsController.createTag
|
||||
|
|
|
@ -35,7 +35,7 @@ define [
|
|||
|
||||
labels.loadDocLabelsFromServer = (docId) ->
|
||||
$http
|
||||
.get("/project/#{window.project_id}/#{docId}/labels")
|
||||
.get("/project/#{window.project_id}/doc/#{docId}/labels")
|
||||
.success (data) ->
|
||||
if data.docId and data.labels
|
||||
state.documents[data.docId] = data.labels
|
||||
|
|
Loading…
Reference in a new issue