@@ -185,7 +185,7 @@ function dashboardApp() {
185185 format : template ?. format || "json" ,
186186 } ;
187187
188- const response = await this . apiRequest ( "/ api/apps" , {
188+ const response = await this . apiRequest ( "api/apps" , {
189189 method : "POST" ,
190190 body : JSON . stringify ( requestBody ) ,
191191 } ) ;
@@ -209,11 +209,11 @@ function dashboardApp() {
209209 async duplicateApp ( appName ) {
210210 try {
211211 // Get the original app's configuration
212- const configResponse = await this . apiRequest ( `/ api/apps/${ appName } /config` ) ;
212+ const configResponse = await this . apiRequest ( `api/apps/${ appName } /config` ) ;
213213 const config = await configResponse . json ( ) ;
214214
215215 // Get app info for description
216- const appResponse = await this . apiRequest ( `/ api/apps/${ appName } ` ) ;
216+ const appResponse = await this . apiRequest ( `api/apps/${ appName } ` ) ;
217217 const appInfo = await appResponse . json ( ) ;
218218
219219 // Generate unique name
@@ -227,7 +227,7 @@ function dashboardApp() {
227227 format : "json" ,
228228 } ;
229229
230- await this . apiRequest ( "/ api/apps" , {
230+ await this . apiRequest ( "api/apps" , {
231231 method : "POST" ,
232232 body : JSON . stringify ( requestBody ) ,
233233 } ) ;
@@ -246,7 +246,7 @@ function dashboardApp() {
246246 if ( ! confirmed ) return ;
247247
248248 try {
249- await this . apiRequest ( `/ api/apps/${ appName } ` , {
249+ await this . apiRequest ( `api/apps/${ appName } ` , {
250250 method : "DELETE" ,
251251 } ) ;
252252
@@ -297,7 +297,7 @@ function dashboardApp() {
297297 return ;
298298 }
299299
300- await this . apiRequest ( `/ api/apps/${ this . editApp . originalName } /metadata` , {
300+ await this . apiRequest ( `api/apps/${ this . editApp . originalName } /metadata` , {
301301 method : "PATCH" ,
302302 body : JSON . stringify ( requestBody ) ,
303303 } ) ;
@@ -464,7 +464,7 @@ function dashboardApp() {
464464 const allConfigs = { } ;
465465
466466 for ( const app of this . apps ) {
467- const response = await this . apiRequest ( `/ api/apps/${ app . name } /config` ) ;
467+ const response = await this . apiRequest ( `api/apps/${ app . name } /config` ) ;
468468 if ( response . ok ) {
469469 allConfigs [ app . name ] = await response . json ( ) ;
470470 }
0 commit comments