Skip to content

Commit

Permalink
#3 Add API version
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Oct 12, 2023
1 parent ec5271a commit 7728871
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion backend/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@
|
*/

'name' => env('APP_NAME', 'Laravel'),
'name' => env('APP_NAME', 'ChangeWindows API'),

/*
|--------------------------------------------------------------------------
| API Version
|--------------------------------------------------------------------------
|
| This value is the version of your application. This value is used when
| the framework needs to place the application's version in a notification
| or any other location as required by the application or its packages.
*/

'version' => '0.0.1',

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

Route::get('/', function () {
return ['Laravel' => app()->version()];
return ['athaia' => config('app.version')];
});

require __DIR__.'/auth.php';

0 comments on commit 7728871

Please sign in to comment.