Skip to content

Commit

Permalink
GAPI-25147: fixing plugin references
Browse files Browse the repository at this point in the history
  • Loading branch information
cadgerfeast committed Nov 26, 2020
1 parent d20ff76 commit 37c2144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: Mollitia - API - Create a plugin
title: Mollitia - API - Create an addon
---
# Create a plugin
# Create an addon

Creating a plugin is similar as [creating a module](/api/create-module), you should implement the **Plugin** interface:
Creating an addon is similar as [creating a module](/api/create-module), you should implement the **Addon** interface:

``` javascript
// Imports the library
const Mollitia = require('mollitia');

// Creates a class
class UselessPlugin implements Mollitia.Plugin {
class UselessAddon implements Mollitia.Addon {
// Called when a circuit is created
onCircuitCreate (circuit, options) {
// Feel free to modify the circuit behavior, and add properties to it
Expand Down
7 changes: 3 additions & 4 deletions docs/content/overview/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ You can then execute a asynchronous operation on the circuit, and the attached m
`Mollitia` has been designed to be customized.
[Modules can be created](/api/create-module), and [addons can be added](/api/create-addon).

<!-- TODO -->
<!-- ### Core Addons -->

<!-- * **[Prometheus](/api/plugin/prometheus)**: Adds multiple metrics to your modules and circuits. -->
### Core Addons
<!-- TODO change link -->
* **[Prometheus](http://135.39.45.156:8081)**: Adds multiple metrics to your modules and circuits.

0 comments on commit 37c2144

Please sign in to comment.