25@app.get('/setAll/<state:int>')
26def setAll(state):
27 if state not in (1,0):
28 abort(code=404, text= "invalid state "+str(state))29 gpio.output(pins, state)
30 for pin in states:
31 states[pin] = state
There should be no spaces before or after the =
in a function definition.