titibs29 / API_LED_PY

Missing module/function docstring PY-D0003
Documentation
Minor
5 months ago2 years old
Docstring missing for control
66
67#create control route on /control
68@app.get('/control')
69def control():70    return static_file("control.html", root="static")
71
72
Docstring missing for index
61
62
63@app.get('/')
64def index():65    return static_file("index.html", root="static")
66
67#create control route on /control
Docstring missing for switch
50
51
52@app.get('/switch/<pin:int>')
53def switch(pin):54    if not pin:
55        abort(code=404, text="pin not provided")
56    if pin not in pins:
Docstring missing for getAll
45
46
47@app.get('/get')
48def getAll():49    return states
50
51
Docstring missing for get
38
39
40@app.get('/get/<pin:int>')
41def get(pin):42    if pin not in pins:
43        abort(code=404, text="pin useless")
44    return str(states.get(pin))