mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 21:44:21 -04:00
Added server option "useCdn", use template statement to route resources' source
This commit is contained in:
parent
09a1e662f9
commit
b6c758f2fc
8 changed files with 71 additions and 16 deletions
4
app.js
4
app.js
|
@ -136,9 +136,7 @@ app.set('views', __dirname + '/public');
|
|||
//set render engine
|
||||
app.engine('html', ejs.renderFile);
|
||||
//get index
|
||||
app.get("/", function (req, res, next) {
|
||||
res.render("index.html");
|
||||
});
|
||||
app.get("/", response.showIndex);
|
||||
//get status
|
||||
app.get("/status", function (req, res, next) {
|
||||
realtime.getStatus(function (data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue