<reponame>beyondcoin-project/apiserver
import time
from flask import jsonify, render_template
from server import stats
##from methods import general
from server import utils
from server import app

@app.route('/stats')
def app_stats():
	return jsonify(stats.info())

@app.route('/ping')
def ping():
	return {'time': int(time.time()), 'result': {'code': "200",'status': "Go beyond the impossible!"}}

@app.route('/')
def frontend():
	return render_template('index.html')

@app.errorhandler(404)
def page_404(error):
	return jsonify(utils.dead_response('Incorrect path. Please check http://api.beyondcoin.io/'))

import time
from flask import jsonify, render_template
from server import stats
##from methods import general
from server import utils
from server import app

@app.route('/stats')
def app_stats():
	return jsonify(stats.info())

@app.route('/ping')
def ping():
	return {'time': int(time.time()), 'result': {'code': "200",'status': "Go beyond the impossible!"}}

@app.route('/')
def frontend():
	return render_template('index.html')

@app.errorhandler(404)
def page_404(error):
	return jsonify(utils.dead_response('Incorrect path. Please check http://api.beyondcoin.io/'))
##from methods import general