node server.js
All are POST requests.
Converts an odt or doc(x) to commonmark and copies media (and serves these). It returns a JSON with two fields: "markdown" (containing the markdown string) and "media" (containing a list of media).
Uploads to "files" dir on server. Responds with url for the file.
Converts commonmark markdown to anything pandoc supports. The "type" parameter has to be the file ending, such as "/export/pdf". Will return the file as response.
All files in the "files" folder are statically served
See test.html for convert, upload and export tests