mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:26:35 +08:00
9f95511096
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 |