This repository has been archived on 2025-03-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cetra/server.js
2023-10-16 15:53:32 +00:00

11 lines
374 B
JavaScript

export default {
port: 80,
fetch(req) {
const url = new URL(req.url)
if(url.pathname == '/') return new Response(Bun.file('./index.html'));
if(url.pathname == '/main.js') return new Response(Bun.file('./main.js'));
if(url.pathname == '/cetra.js') return new Response(Bun.file('./cetra/Cetra.js'));
return new Response('ERR 404: Not Found', { status: 404 })
}
}