Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
LC_api_news
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fd9b3a97
authored
Dec 09, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
跨域问题
parent
c2778533
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
config/website.php
routes/web.php
config/website.php
View file @
fd9b3a97
...
...
@@ -12,6 +12,16 @@ return [
'BaseUrl'
=>
env
(
'BaseUrl'
,
''
),
'GoodsServerUrl'
=>
env
(
'GOODS_SERVER_URL'
,
''
),
'allow_origin'
=>
[
'http://goods.sensorhunt.cc'
,
'http://search.sensorhunt.cc'
,
'http://home.sensorhunt.cc'
,
'http://www.sensorhunt.cc'
,
'http://item.sensorhunt.cc'
,
'http://goods.sensorhunt.com'
,
'http://search.sensorhunt.com'
,
'http://home.sensorhunt.com'
,
'http://item.sensorhunt.com'
,
'http://www.sensorhunt.com'
,
],
'language'
=>
[
''
,
...
...
routes/web.php
View file @
fd9b3a97
...
...
@@ -18,7 +18,7 @@ $router->addRoute(['GET', 'POST'], '/', function () use ($router) {
$router
->
addRoute
([
'GET'
,
'POST'
],
'/test'
,
'CheckInController@test'
);
//第一个版本不需要登陆,所以不走中间件
$router
->
group
([
'middleware'
=>
[]],
function
()
use
(
$router
)
{
$router
->
group
([
'middleware'
=>
[
'web'
]],
function
()
use
(
$router
)
{
$router
->
addRoute
([
'GET'
,
'POST'
],
'/case/list'
,
'CaseController@index'
);
$router
->
addRoute
([
'GET'
,
'POST'
],
'/case/info'
,
'CaseController@show'
);
$router
->
addRoute
([
'GET'
,
'POST'
],
'/faq/list'
,
'FaqController@index'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment