0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-17 05:42:06 +00:00

Started work on API token controls

- Added access-api permission.
- Started user profile UI work.
- Created database table and model for tokens.
- Fixed incorrect templates down migration :(
This commit is contained in:
Dan Brown 2019-12-29 13:02:26 +00:00
parent 04137e7c98
commit d336ba6874
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
10 changed files with 143 additions and 15 deletions
app/Http/Controllers

View file

@ -0,0 +1,20 @@
<?php namespace BookStack\Http\Controllers;
use Illuminate\Http\Request;
class UserApiTokenController extends Controller
{
/**
* Show the form to create a new API token.
*/
public function create(int $userId)
{
$this->checkPermission('access-api');
// TODO - Form
return 'test';
}
}