You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
server/frontend.js

21 lines
391 B
JavaScript

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(
'Not Found', {status: 404}
))
}
}