Add backend README

Signed-off-by: josh <josh.timmons@hashicorp.com>
This commit is contained in:
josh
2023-06-04 18:32:19 -04:00
parent 520e984280
commit c0f49cec77
5 changed files with 63 additions and 34 deletions
+2 -10
View File
@@ -18,15 +18,7 @@ import { Router } from 'express';
import { PluginEnvironment } from '../types';
export default async function createPlugin(
env: PluginEnvironment,
props: PluginEnvironment,
): Promise<Router> {
// Here is where you will add all of the required initialization code that
// your backend plugin needs to be able to start!
// The env contains a lot of goodies, but our router currently only
// needs a logger
return await createRouter({
logger: env.logger,
config: env.config,
});
return await createRouter(props);
}