<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Org;
use App\User;

class HomeController extends Controller
{
    public function index()
    {
        $endpoints = (object) [];
        $endpoints->user = url('api/user');
        $endpoints->user_orgs = url('api/user/orgs');
        $endpoints->org = url('api/org/{id}');
        $endpoints->org_password = url('api/org/{id}');
        $endpoints->update_org = url('api/org/{id}');
        $endpoints->join = url('api/join/{id}');
        $endpoints->stats = url('api/stats');
        $endpoints->docs = url('https://github.com/m1guelpf/orgmanager/wiki').' (TODO)';

        return response()->json($endpoints);
    }

    public function org()
    {
        $endpoints = (object) [];
        $endpoints->org = url('api/org/{id}');
        $endpoints->docs = url('https://github.com/m1guelpf/orgmanager/wiki').' (TODO)';

        return response()->json($endpoints);
    }

    public function stats()
    {
        $stats = (object) [];
        $stats->users = User::count();
        $stats->orgs = Org::count();
        $stats->invites = Org::sum('invitecount');

        return response()->json($stats);
    }
}

<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Org;
use App\User;

class HomeController extends Controller
{
    public function index()
    {
        $endpoints = (object) [];
        $endpoints->user = url('api/user');
        $endpoints->user_orgs = url('api/user/orgs');
        $endpoints->org = url('api/org/{id}');
        $endpoints->org_password = url('api/org/{id}');
        $endpoints->update_org = url('api/org/{id}');
        $endpoints->join = url('api/join/{id}');
        $endpoints->stats = url('api/stats');
        $endpoints->docs = url('http://docs.orgmanager.apiary.io');

        return response()->json($endpoints);
    }

    public function org()
    {
        $endpoints = (object) [];
        $endpoints->org = url('api/org/{id}');
        $endpoints->docs = url('http://docs.orgmanager.apiary.io');

        return response()->json($endpoints);
    }

    public function stats()
    {
        $stats = (object) [];
        $stats->users = User::count();
        $stats->orgs = Org::count();
        $stats->invites = Org::sum('invitecount');

        return response()->json($stats);
    }
}

Fix the API docs URL
:memo: Fix the API docs URL
