Created
December 2, 2015 05:27
-
-
Save Kadajett/495a1e0109b8536d4703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/api/<string:channelName>', methods=['GET']) | |
def getChannel(channelName): | |
// channel = someFunctionThatFindsAChatByItsName | |
if `channel doesnt exist??? lol`: | |
abort(404) | |
return jsonify(channel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment