Skip to content

Commit

Permalink
0.1.14 fixes a big issue
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamint08 committed Apr 9, 2024
1 parent f505836 commit 6603a51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/main/index.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "probun",
"description": "Powerful file-based routing for Bun servers",
"module": "src/main/index.ts",
"version": "0.1.13",
"version": "0.1.14",
"main": "./lib/main/index.js",
"type": "module",
"homepage": "https://probun.dev",
Expand Down
10 changes: 8 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ interface Route {
}

// Methods
const methods = {} as any;
const methods = {
get: {} as any,
post: {} as any,
put: {} as any,
delete: {} as any,
patch: {} as any,
} as any;

// Middlewares
const premiddlewares = [] as any;
const postmiddlewares = [] as any;

async function loadFolder(folder: string) {
if(log) {
console.log(`${chalk.bold.white(`Loading `)} ${chalk.bold.green(`${folder}`)}...`);
console.log(`${chalk.bold.white(`Loading`)} ${chalk.bold.green(`${folder}`)}...`);
}
const allRoutes = new Glob(`${folder}/*.ts`);
for await (let file of allRoutes.scan(".")) {
Expand Down

0 comments on commit 6603a51

Please sign in to comment.