@@ -1177,7 +1177,7 @@ async function uploadFiles(files) {
11771177 // Update progress
11781178 updateProgress ( 25 , 'Uploading files...' ) ;
11791179
1180- const response = await fetch ( '/api/certificates/ upload' , {
1180+ const response = await fetch ( '/api/upload' , {
11811181 method : 'POST' ,
11821182 body : formData ,
11831183 credentials : 'same-origin'
@@ -1415,22 +1415,22 @@ async function downloadFile(url, filename) {
14151415}
14161416
14171417function downloadCert ( folderParam , filename ) {
1418- const url = API_BASE + '/download/cert/' + folderParam + '/' + filename ;
1418+ const url = API_BASE + '/api/ download/cert/' + folderParam + '/' + filename ;
14191419 downloadFile ( url , filename ) ;
14201420}
14211421
14221422function downloadKey ( folderParam , filename ) {
1423- const url = API_BASE + '/download/key/' + folderParam + '/' + filename ;
1423+ const url = API_BASE + '/api/ download/key/' + folderParam + '/' + filename ;
14241424 downloadFile ( url , filename ) ;
14251425}
14261426
14271427function downloadBundle ( folderParam , certname ) {
1428- const url = API_BASE + '/download/bundle/' + folderParam + '/' + certname ;
1428+ const url = API_BASE + '/api/ download/bundle/' + folderParam + '/' + certname ;
14291429 downloadFile ( url , certname + '.zip' ) ;
14301430}
14311431
14321432function downloadRootCA ( ) {
1433- const url = API_BASE + '/download/rootca' ;
1433+ const url = API_BASE + '/api/ download/rootca' ;
14341434 downloadFile ( url , 'mkcert-rootCA.pem' ) ;
14351435}
14361436
0 commit comments