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:
parent
04137e7c98
commit
d336ba6874
10 changed files with 143 additions and 15 deletions
app/Http/Controllers
20
app/Http/Controllers/UserApiTokenController.php
Normal file
20
app/Http/Controllers/UserApiTokenController.php
Normal 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';
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue