commit b5025c9a9f2e36dd2c4c2c3ccb445b284bff25a6 Author: Benni Date: Mon Oct 16 15:53:32 2023 +0000 init(project) structure diff --git a/cetra/Cetra.js b/cetra/Cetra.js new file mode 100644 index 0000000..00bba0a --- /dev/null +++ b/cetra/Cetra.js @@ -0,0 +1,8 @@ +export default class Cetra { + constructor() { + } + + static init() { + console.log('oi') + } +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..dddbb17 --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + + + + Document + + + + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..0ae76e5 --- /dev/null +++ b/main.js @@ -0,0 +1,3 @@ +import Cetra from './cetra.js'; + +Cetra.init() diff --git a/server.js b/server.js new file mode 100644 index 0000000..8a6754e --- /dev/null +++ b/server.js @@ -0,0 +1,10 @@ +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 }) + } +}