create-fuzionx 0.1.27 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fuzionx",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Create a new FuzionX application — npx create-fuzionx my-app",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,14 +1,6 @@
1
1
  import { Application } from '@fuzionx/framework';
2
- import webRoutes from './routes/web.js';
3
- import apiRoutes from './routes/api.js';
4
2
 
5
3
  const app = new Application({ configPath: './fuzionx.yaml' });
6
4
 
7
- app.routes(webRoutes);
8
- app.routes(apiRoutes);
9
-
10
5
  await app.boot();
11
-
12
- app.listen(49080, () => {
13
- console.log('🚀 FuzionX running on http://localhost:49080');
14
- });
6
+ await app.listen();
@@ -8,6 +8,6 @@ export default class HomeController extends Controller {
8
8
 
9
9
  /** 홈 페이지 */
10
10
  async index(ctx) {
11
- ctx.render('pages/home');
11
+ ctx.render('home');
12
12
  }
13
13
  }
@@ -7,7 +7,7 @@
7
7
  "test": "vitest run"
8
8
  },
9
9
  "dependencies": {
10
- "@fuzionx/framework": "^0.1.27"
10
+ "@fuzionx/framework": "^0.1.28"
11
11
  },
12
12
  "devDependencies": {
13
13
  "vitest": "^3.0.0"
@@ -1,5 +1,5 @@
1
+ import HomeController from '../controllers/HomeController.js';
2
+
1
3
  export default (r) => {
2
- r.get('/', (ctx) => {
3
- ctx.render('home');
4
- });
4
+ r.get('/', HomeController.index);
5
5
  };