Skip to content

Commit

Permalink
Remove count wikis endpoint (not used)
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed Dec 8, 2020
1 parent 2bbde16 commit 41e7564
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 72 deletions.
9 changes: 0 additions & 9 deletions app/Http/Controllers/WikisController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@

class WikisController extends Controller
{
public function count()
{
$res['success'] = true;
// TODO only count active?
$res['data'] = Wiki::count();

return response($res);
}

public function getWikisOwnedByCurrentUser(Request $request)
{
// TODO FIXME, right now this returns alll of the details of the wiki managers :/
Expand Down
6 changes: 2 additions & 4 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
<?php

/** @var Router $router */
use Laravel\Lumen\Routing\Router;
/** @var \Laravel\Lumen\Routing\Router $router */

// GET
$router->get('wiki/count', ['uses' => 'WikisController@count']);
$router->get(
'healthz',
function() {
return 'It\'s Alive';
}
);

// POST
$router->post('auth/login', ['uses' => 'Auth\LoginController@login']);
// TODO actually use logout route in VUE app..
$router->post('auth/logout', ['uses' => 'Auth\LoginController@logout']);
$router->post('user/register', ['uses' => 'Auth\RegisterController@register']);
// TODO finish converting for laravel below here
$router->post('user/verifyEmail', ['uses' => 'UserVerificationTokenController@verify']);
$router->post('user/forgotPassword', ['uses' => 'Auth\ForgotPasswordController@sendResetLinkEmail']);
$router->post('user/resetPassword', ['uses' => 'Auth\ResetPasswordController@reset']);
Expand Down
59 changes: 0 additions & 59 deletions tests/Routes/Wiki/CountTest.php

This file was deleted.

0 comments on commit 41e7564

Please sign in to comment.