diff --git a/src/flextype/core/Endpoints/Tokens.php b/src/flextype/core/Endpoints/Tokens.php index ae7b4974..440fe50b 100644 --- a/src/flextype/core/Endpoints/Tokens.php +++ b/src/flextype/core/Endpoints/Tokens.php @@ -32,7 +32,7 @@ class Tokens extends Api * * @return ResponseInterface Response. */ - public function generateToken(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface + public function generate(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { // Validate Api Request if ( @@ -60,7 +60,7 @@ class Tokens extends Api * * @return ResponseInterface Response. */ - public function generateTokenHash(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface + public function generateHash(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { // Get Request Parsed Body $requestParsedBody = $request->getParsedBody(); @@ -91,7 +91,7 @@ class Tokens extends Api * * @return ResponseInterface Response. */ - public function verifyTokenHash(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface + public function verifyHash(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface { // Get Request Parsed Body $requestParsedBody = $request->getParsedBody(); @@ -221,8 +221,6 @@ class Tokens extends Api // Fetch entry $entryData = entries()->fetch('tokens/' . $requestParsedBody['id'])->toArray(); - - dd($entryData); // Return response if (count($entryData) > 0) { diff --git a/src/flextype/routes/endpoints/tokens.php b/src/flextype/routes/endpoints/tokens.php index d438ff7f..90114504 100644 --- a/src/flextype/routes/endpoints/tokens.php +++ b/src/flextype/routes/endpoints/tokens.php @@ -68,7 +68,7 @@ app()->post('/api/v0/tokens/verify-hash', [Tokens::class, 'verifyHash'])->setNam /** * Create token entry * - * endpoint: POST /api/v0/tokens/create-token + * endpoint: POST /api/v0/tokens * * Body: * token - [REQUIRED] - Valid public token.