Skip to content

Commit 5d648cb

Browse files
committed
feat: update API scaffold
1 parent 899b52e commit 5d648cb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/CreateCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,10 @@ protected function handle(): int
151151
}
152152

153153
\Leaf\FS\Directory::delete("$directory/app/views");
154-
\Leaf\FS\Directory::create("$directory/app/views");
155-
156154
\Leaf\FS\Directory::delete("$directory/app/routes");
157-
\Leaf\FS\Directory::copy(__DIR__ . '/themes/api/routes', "$directory/app/routes");
158-
159155
\Leaf\FS\Directory::delete("$directory/public/index.php");
156+
157+
\Leaf\FS\Directory::copy(__DIR__ . '/themes/api/routes', "$directory/app/routes");
160158
\Leaf\FS\Directory::copy(__DIR__ . '/themes/api/index.php', "$directory/public/index.php");
161159

162160
\Leaf\FS\File::write("$directory/leaf", function ($content) {

0 commit comments

Comments
 (0)