diff --git a/frontend.js b/frontend.js index 05bee7a..d75bb90 100644 --- a/frontend.js +++ b/frontend.js @@ -1,4 +1,17 @@ export class Frontend { + repoUrl(user, repo) { + + } + + rawUrl(user, repo, commit, path) { + return ( + this.appBaseUrl + + '/raw/commit' + + '/' + encodeURIComponent(commit) + + '/' + encodeURI(path) + ) + } + async serve(event) { // TODO: load files from different mounted repos event.respondWith(new Response(