plugins: refactory to use default export for new backend system
Co-authored-by: Fredrik Adelöw <freben@gmail.com> Co-authored-by: Camila Belo <camilaibs@gmail.com> Co-authored-by: Johan Haals <johan.haals@gmail.com> Co-authored-by: Philipp Hugenroth <philipph@spotify.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -12,7 +12,8 @@ import { Logger } from 'winston';
|
||||
export function createRouter(options: RouterOptions): Promise<express.Router>;
|
||||
|
||||
// @alpha
|
||||
export const periskopPlugin: () => BackendFeature;
|
||||
const periskopPlugin: () => BackendFeature;
|
||||
export default periskopPlugin;
|
||||
|
||||
// @public (undocumented)
|
||||
export interface RouterOptions {
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
*/
|
||||
|
||||
export * from './service/router';
|
||||
export { periskopPlugin } from './plugin';
|
||||
export { periskopPlugin as default } from './plugin';
|
||||
|
||||
Reference in New Issue
Block a user