Skip to content

Commit

Permalink
adjust API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Last-Order committed Nov 20, 2017
1 parent 39a1c93 commit 920ac9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ public function level()
public function team(){
return $this->belongsTo('App\Team', 'team_id', 'team_id');
}

public function challenge(){
return $this->belongsTo('App\Challenge', 'challenge_id', 'challenge_id');
}
}
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
Route::group(['prefix' => 'API'], function () {
Route::get('/', 'IndexController@index');
Route::group(['prefix' => 'User'], function () {
Route::group(['prefix' => 'Team'], function () {
//Route::group(['middleware' => 'throttle:120'], function(){
Route::post('login', 'TeamController@login');
Route::post('register', 'TeamController@register');
Expand Down

0 comments on commit 920ac9f

Please sign in to comment.