chore(project) cleaning
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
export default class Cetra {
|
|
||||||
constructor() {
|
|
||||||
}
|
|
||||||
|
|
||||||
static init() {
|
|
||||||
console.log('oi')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
12
index.html
12
index.html
@@ -1,12 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script src="./cetra.js" type="module"></script>
|
|
||||||
<script src="./main.js" type="module"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
10
server.js
10
server.js
@@ -1,10 +0,0 @@
|
|||||||
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 })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user