Do final internal renameing
A little minor change, by moving the CodiMD version header in its own middleware. Should simplify to determine the version number of the Backend in future. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
@@ -109,7 +109,7 @@ function showIndex (req, res, next) {
|
||||
}
|
||||
}
|
||||
|
||||
function responseHackMD (res, note) {
|
||||
function responseCodiMD (res, note) {
|
||||
var body = note.content
|
||||
var extracted = models.Note.extractMeta(body)
|
||||
var meta = models.Note.parseMeta(extracted.meta)
|
||||
@@ -214,7 +214,7 @@ function showNote (req, res, next) {
|
||||
var noteId = req.params.noteId
|
||||
var id = models.Note.encodeNoteId(note.id)
|
||||
if ((note.alias && noteId !== note.alias) || (!note.alias && noteId !== id)) { return res.redirect(config.serverURL + '/' + (note.alias || id)) }
|
||||
return responseHackMD(res, note)
|
||||
return responseCodiMD(res, note)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user