Add APP_VERSION to .env

This commit is contained in:
Irfan 2021-01-14 05:06:52 +05:00
parent 88099af4d3
commit e2cbcd56dc
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ APP_DEBUG=false
APP_KEY=
APP_TIMEZONE=UTC
APP_URL=http://localhost
APP_VERSION="4.0 Alpha Preview"
###
# Database Caching (MongoDB)
@ -15,6 +16,7 @@ DB_CONNECTION=mongodb
DB_HOST=localhost
DB_PORT=27017
DB_DATABASE=jikan
DB_ADMIN=jikan
DB_USERNAME=
DB_PASSWORD=

View File

@ -5,7 +5,7 @@ $router->get('/', function () use ($router) {
return response()->json([
'author_url' => 'https://github.com/irfan-dahir',
'discord_url' => 'http://discord.jikan.moe',
'version' => '4.0 Alpha Preview',
'version' => env('APP_VERSION'),
'parser_version' => JIKAN_PARSER_VERSION,
'website_url' => 'https://jikan.moe',
'documentation_url' => 'https://docs.api.jikan.moe/',