feature(api): setup name
This commit is contained in:
parent
47076063bb
commit
1d7b6a6a54
4 changed files with 40 additions and 1 deletions
|
@ -2,6 +2,10 @@ class APITokensController < ApplicationController
|
|||
before_action :authenticate_administrateur!
|
||||
before_action :set_api_token, only: [:destroy]
|
||||
|
||||
def nom
|
||||
@name = params[:name]
|
||||
end
|
||||
|
||||
def create
|
||||
@api_token, @packed_token = APIToken.generate(current_administrateur)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue