Skip to content

YAML for Flask Routes

Tony Fast edited this page Aug 31, 2015 · 1 revision
 ``app.yaml`` describes the routes for the apps.  The yaml structure is

```yaml
routes:
  '/,index.html'/:
    function: hello
    methods: [get]

is equivalent to

@app.route( '/', methods=['GET'])
@app.route( '/index.html', methods=['GET'])
def hello():
  return "hello"

Clone this wiki locally