nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitweb: split APIRouter in modules
[nit.git]
/
src
/
web
/
api_docdown.nit
diff --git
a/src/web/api_docdown.nit
b/src/web/api_docdown.nit
index
bf4c80f
..
778baa1
100644
(file)
--- a/
src/web/api_docdown.nit
+++ b/
src/web/api_docdown.nit
@@
-20,6
+20,13
@@
intrude import doc_down
intrude import markdown::wikilinks
import doc_commands
intrude import markdown::wikilinks
import doc_commands
+redef class APIRouter
+ redef init do
+ super
+ use("/docdown/", new APIDocdown(config))
+ end
+end
+
# Docdown handler accept docdown as POST data and render it as HTML
class APIDocdown
super APIHandler
# Docdown handler accept docdown as POST data and render it as HTML
class APIDocdown
super APIHandler