Skip to content

Commit

Permalink
move to src
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefelgoharyx committed Feb 16, 2023
1 parent 1563c80 commit 3849fb9
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 26 deletions.
12 changes: 6 additions & 6 deletions main/deno.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"tasks": {
"dev": "deno run -A --watch ./main.ts"
},
"imports": {
"atom": "https://deno.land/x/atom/mod.ts"
}
"tasks": {
"dev": "deno run -A --watch ./main.ts"
},
"imports": {
"atom": "../../atom/mod.ts"
}
}
93 changes: 93 additions & 0 deletions main/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions main/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Atom from "@/mod.ts";
import Atom from "atom";
async function main() {
await Atom.bootstrap({
routesPath: "example/routes",
});
await Atom.bootstrap({
routesPath: "/routes",
});
}

main();
16 changes: 0 additions & 16 deletions main/routes/(get).ts

This file was deleted.

9 changes: 9 additions & 0 deletions main/src/routes/(get).ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { RequestHandler } from "atom";

const handler: RequestHandler = (req) => {
return new Response(`Hello worlds your url is ${req.url} `);
};

export const middlewares = [];

export default handler;

0 comments on commit 3849fb9

Please sign in to comment.