netclock/timezone/api.py

16 lines
301 B
Python
Raw Normal View History

2020-10-26 10:47:07 +00:00
from flask import request, jsonify
from time import time
import uuid
import struct
from . import app
@app.route('/api/v1/autocomplete', methods=['GET'])
def autocomplete_timezone():
complete_str = request.args.get('complete')
if not complete_str: return "No part"
return complete_str