Module: hexo-editor-serever


(require("hexo-editor-serever"))(app, opts)

mount hexo-editor-server to koa app
Parameters:
Name Type Description
app Koa koa app instance
opts Object options
Properties
Name Type Argument Default Description
base String <optional>
'/hexo/' hexo-editor-server base url. e.g. `/` or `/editor/`, default is `/hexo/`. Must match `^/?([a-zA-Z0-9]+/?)?$`
auth function <optional>
custom authentication middleware
Returns:
Type
void