Armin Friedl
19c9e720e7
All checks were successful
continuous-integration/drone/push Build is passing
If specifying a blueprint with route "/", this will result in flask redirecting to a request to `http://example.com/blueprint` to `http://example.com/blueprint/`. This we don't want.
11 lines
237 B
Python
11 lines
237 B
Python
from flask import render_template, request, flash, redirect, url_for, session
|
|
|
|
from . import app
|
|
|
|
@app.route('', methods=['GET'])
|
|
def create_get():
|
|
return "Bye"
|
|
|
|
@app.route('', methods=['POST'])
|
|
def create_post():
|
|
return "Hello"
|