Skip to content

Instantly share code, notes, and snippets.

@larkintuckerllc
Created March 8, 2022 18:27
Show Gist options
  • Save larkintuckerllc/68c8d5368a42aae172388d81b8f43e4e to your computer and use it in GitHub Desktop.
Save larkintuckerllc/68c8d5368a42aae172388d81b8f43e4e to your computer and use it in GitHub Desktop.
import { Config } from '@backstage/config'
import { createRouter } from '@internal/plugin-my-plugin-backend';
import { PluginEnvironment } from '../types';
export default async function createPlugin(config: Config, env: PluginEnvironment) {
// 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({
config,
logger: env.logger,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment