Created
March 8, 2022 18:27
-
-
Save larkintuckerllc/68c8d5368a42aae172388d81b8f43e4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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