mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-12 16:01:39 +00:00
16 lines
594 B
TypeScript
16 lines
594 B
TypeScript
import { urlencodedParser } from './utils'
|
|
import { History } from '../history'
|
|
|
|
const Router = require('express').Router
|
|
const historyRouter = module.exports = 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)
|