Logo white

Alexey Boroda / akaunting

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • akaunting
  • app
  • Http
  • Controllers
  • Api
  • Common
  • Ping.php
  • first commit
    b7c7a5f6
    Alexey Boroda authored
    2018-10-22 16:42:06 +0300  
    Browse Code ยป
Ping.php 465 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php

namespace App\Http\Controllers\Api\Common;

use App\Http\Controllers\ApiController;
use Date;
use Dingo\Api\Routing\Helpers;

class Ping extends ApiController
{
    use Helpers;

    /**
     * Responds with a status for heath check.
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function index()
    {
        return $this->response->array([
            'status' => 'ok',
            'timestamp' => Date::now(),
        ]);
    }
}