File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export default class ForeignInlineListPlugin extends AdminForthPlugin {
2727 }
2828
2929 setupEndpoints ( server : IHttpServer ) {
30+ console . log ( "Setting up endpoints for plugin" , this . pluginInstanceId ) ;
3031 server . endpoint ( {
3132 method : 'POST' ,
3233 path : `/plugin/${ this . pluginInstanceId } /get_default_filters` ,
@@ -161,6 +162,12 @@ export default class ForeignInlineListPlugin extends AdminForthPlugin {
161162 if ( plugin . modifyResourceConfig ) {
162163 await plugin . modifyResourceConfig ( adminforth , this . copyOfForeignResource ) ;
163164 }
165+ if ( plugin . setupEndpoints ) {
166+ await plugin . setupEndpoints ( adminforth . express ) ;
167+ }
168+ if ( plugin . validateConfigAfterDiscover ) {
169+ await plugin . validateConfigAfterDiscover ( adminforth , this . copyOfForeignResource ) ;
170+ }
164171 }
165172
166173
You can’t perform that action at this time.
0 commit comments