Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
CO-OP Search
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kittisak Maneewong
CO-OP Search
Commits
c13e2d48
Commit
c13e2d48
authored
Apr 08, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://projectcs.sci.ubu.ac.th/Kittisak162/co-op-search
parents
ea662908
c051f015
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
AuthController.php
app/Http/Controllers/AuthController.php
+1
-1
app.js
public/js/app.js
+0
-0
Toolbar.vue
resources/js/components/Toolbar.vue
+1
-1
api.php
routes/api.php
+2
-1
No files found.
app/Http/Controllers/AuthController.php
View file @
c13e2d48
...
...
@@ -57,7 +57,7 @@ class AuthController extends Controller
public
function
getAuthenticatedUser
()
{
try
{
if
(
!
user
=
=
JWTAuth
::
parseToken
()
->
authenticate
())
{
if
(
!
$user
=
JWTAuth
::
parseToken
()
->
authenticate
())
{
return
response
()
->
json
([
'user_not_found'
],
404
);
}
}
catch
(
Tymon\JWTAuth\Exceptions\TokenExpiredException
$e
)
{
...
...
public/js/app.js
View file @
c13e2d48
This diff is collapsed.
Click to expand it.
resources/js/components/Toolbar.vue
View file @
c13e2d48
...
...
@@ -29,7 +29,7 @@
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"m
x-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
...
...
routes/api.php
View file @
c13e2d48
...
...
@@ -16,5 +16,5 @@ use Illuminate\Http\Request;
Route
::
group
([
'prefix'
=>
'auth'
],
function
(
$router
)
{
Route
::
post
(
'register'
,
'AuthController@register'
);
Route
::
post
(
'login'
,
'AuthController@login'
);
Route
::
pos
t
(
'current'
,
'AuthController@getAuthenticatedUser'
);
Route
::
ge
t
(
'current'
,
'AuthController@getAuthenticatedUser'
);
});
\ No newline at end of file
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