mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 18:50:48 +00:00
fd57ed19c2
Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: David Mehren <dmehren1@gmail.com>
18 lines
595 B
TypeScript
18 lines
595 B
TypeScript
import { urlencodedParser } from './utils'
|
|
import { History } from '../history'
|
|
import { Router } from 'express'
|
|
|
|
const HistoryRouter = Router()
|
|
|
|
// get history
|
|
HistoryRouter.get('/history', History.historyGet)
|
|
// post history
|
|
HistoryRouter.post('/history', urlencodedParser, History.historyPost)
|
|
// post history by note id
|
|
HistoryRouter.post('/history/:noteId', urlencodedParser, History.historyPost)
|
|
// delete history
|
|
HistoryRouter.delete('/history', History.historyDelete)
|
|
// delete history by note id
|
|
HistoryRouter.delete('/history/:noteId', History.historyDelete)
|
|
|
|
export { HistoryRouter }
|