mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 13:24:09 +08:00
db8b8742c4
You can now create a file in your plugin/theme in the `api-initializers` directory which has a simpler template than previous initializers. Example: ``` // api-initializers/my-plugin.js import { apiInitializer } from "discourse/lib/api"; export default apiInitializer("0.8", api => { console.log("hello world from api initializer!"); }); ``` |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |