File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 19
19
'controllers ' => 'App \\Http \\Controllers ' ,
20
20
'types ' => 'App \\' ,
21
21
'debug ' => Debug::RETHROW_UNSAFE_EXCEPTIONS ,
22
- 'uri ' => ' /graphql ' ,
22
+ 'uri ' => env ( ' GRAPHQLITE_URI ' , ' /graphql ') ,
23
23
];
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- $ uri = config ('graphqlite.uri ' , '/graphql ' );
4
-
5
- Route::get ($ uri , 'TheCodingMachine \\GraphQLite \\Laravel \\Controllers \\GraphQLiteController@index ' );
6
- Route::post ($ uri , 'TheCodingMachine \\GraphQLite \\Laravel \\Controllers \\GraphQLiteController@index ' );
3
+ Route::get (config ('graphqlite.uri ' ), 'TheCodingMachine \\GraphQLite \\Laravel \\Controllers \\GraphQLiteController@index ' );
4
+ Route::post (config ('graphqlite.uri ' ), 'TheCodingMachine \\GraphQLite \\Laravel \\Controllers \\GraphQLiteController@index ' );
You can’t perform that action at this time.
0 commit comments