mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Rewrite slide controller to TypeScript
Before this patch the non-TypeScript version of the slide mode causes problems with the TypeScript code. Therefore, in order to get things working, this patch does minimalistic changes to the slide mode controller to bring it into TypeScript convention. And unbreak slide mode. Further changes are required, but this gets slide mode back to a usable state. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
a3f5dcb4c7
commit
37923d11f8
3 changed files with 54 additions and 48 deletions
|
@ -1,6 +1,6 @@
|
|||
import {markdownParser} from "../utils";
|
||||
|
||||
import slide from "./slide";
|
||||
import {SlideController} from "./slide";
|
||||
import {NoteController} from "./controller";
|
||||
import {Router} from "express";
|
||||
|
||||
|
@ -16,9 +16,9 @@ router.get('/s/:shortid', NoteController.showPublishNote);
|
|||
// publish note actions
|
||||
router.get('/s/:shortid/:action', NoteController.publishNoteActions);
|
||||
// get publish slide
|
||||
router.get('/p/:shortid', slide.showPublishSlide);
|
||||
router.get('/p/:shortid', SlideController.showPublishSlide);
|
||||
// publish slide actions
|
||||
router.get('/p/:shortid/:action', slide.publishSlideActions);
|
||||
router.get('/p/:shortid/:action', SlideController.publishSlideActions);
|
||||
// get note by id
|
||||
router.get('/:noteId', NoteController.showNote);
|
||||
// note actions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue