mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-06-08 00:23:55 +02:00
refactor AnonymizedFile
This commit is contained in:
@@ -34,7 +34,8 @@ async function webView(req: express.Request, res: express.Response) {
|
||||
requestPath = path.join(requestPath, "index.html");
|
||||
}
|
||||
requestPath = requestPath;
|
||||
const f = new AnonymizedFile(repo, {
|
||||
const f = new AnonymizedFile({
|
||||
repository: repo,
|
||||
anonymizedPath: requestPath,
|
||||
});
|
||||
if (!(await f.isFileSupported())) {
|
||||
|
||||
Reference in New Issue
Block a user