mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 16:32:23 -05:00
11 lines
531 B
CoffeeScript
11 lines
531 B
CoffeeScript
|
AuthenticationController = require('../Authentication/AuthenticationController')
|
||
|
TemplatesController = require("./TemplatesController")
|
||
|
TemplatesMiddlewear = require('./TemplatesMiddlewear')
|
||
|
|
||
|
module.exports =
|
||
|
apply: (app)->
|
||
|
|
||
|
app.get '/project/new/template/:Template_version_id', TemplatesMiddlewear.saveTemplateDataInSession, AuthenticationController.requireLogin(), TemplatesController.getV1Template
|
||
|
|
||
|
app.post '/project/new/template', AuthenticationController.requireLogin(), TemplatesController.createProjectFromV1Template
|