mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-27 06:01:54 +03: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:
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';
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user