93f43d928860a345d712a07428af3170a34facb9
chmalee
  Fri Apr 5 12:33:42 2024 -0700
Make web accessible user directory link available at start time. Added a symlink to upload directory in /usr/local/apache

diff --git src/hg/hgHubConnect/trackHubWizard.c src/hg/hgHubConnect/trackHubWizard.c
index bbfe9aa..8375640 100644
--- src/hg/hgHubConnect/trackHubWizard.c
+++ src/hg/hgHubConnect/trackHubWizard.c
@@ -36,30 +36,33 @@
         }
     }
 fprintf(stdout, "Status: 404 Not Found\n\n");
 fflush(stdout);
 exit(0);
 }
 
 static void outFilesForUser()
 /* List out the currently stored files for the user and their sizes */
 {
 char *userName = getUserName();
 struct jsonWrite *jw = jsonWriteNew(); // the JSON to return for the client javascript
 jsonWriteObjectStart(jw, NULL);
 if (userName)
     {
+    // the url for this user:
+    jsonWriteString(jw, "userUrl", webDataDir(userName));
+    // any previously uploaded files
     struct fileInfo *file;
     struct userFiles *uf = listFilesForUser(userName);
     jsonWriteListStart(jw, "fileList");
     for (file = uf->file; file != NULL; file = file->next)
         {
         jsonWriteObjectStart(jw, NULL);
         jsonWriteString(jw, "name", file->name);
         jsonWriteNumber(jw, "size", file->size);
         jsonWriteDateFromUnix(jw, "createTime", file->creationTime);
         jsonWriteObjectEnd(jw);
         }
     jsonWriteListEnd(jw);
     }
 jsonWriteObjectEnd(jw);
 jsInlineF("var userFiles = %s;\n", dyStringCannibalize(&jw->dy));