Browse Source

add url for raw files w/ commit hash

shared-server
bat 3 years ago
parent
commit
243a2a19d7
  1. 13
      frontend.js

13
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(

Loading…
Cancel
Save