mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
Allow posting new note with content
Signed-off-by: Dustin Frisch <fooker@lab.sh>
This commit is contained in:
parent
a8fa888317
commit
f47601857e
3 changed files with 13 additions and 1 deletions
|
@ -4,10 +4,14 @@ const Router = require('express').Router
|
|||
|
||||
const response = require('../response')
|
||||
|
||||
const {markdownParser} = require('./utils')
|
||||
|
||||
const noteRouter = module.exports = Router()
|
||||
|
||||
// get new note
|
||||
noteRouter.get('/new', response.newNote)
|
||||
// post new note with content
|
||||
noteRouter.post('/new', markdownParser, response.newNote)
|
||||
// get publish note
|
||||
noteRouter.get('/s/:shortid', response.showPublishNote)
|
||||
// publish note actions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue