- add plugin system that request may included to run before do actual request by type. Signed-off-by: Pakin <pakin.t@forth.co.th>
10 lines
No EOL
215 B
Text
10 lines
No EOL
215 B
Text
package server-m2-dev:plugins;
|
|
|
|
interface handler {
|
|
// The plugin takes a message and returns a processed version
|
|
process-message: func(input: string) -> string;
|
|
}
|
|
|
|
world plugin-world {
|
|
export handler;
|
|
} |