Dual view

Report a typo

Write a program that will route two view functions:

1. The /data/main_info URL should return the Response object with the message <h1>Hello there, it's me — my own worst enemy!</h1> and the response code 200.

2. The /the_wall URL should return the Response object with the message <h1>Welkommen!</h1> and the response code 200.

Write a program in Python 3
from flask import Flask, Response

app = Flask('main')


@app.route('URL HERE')
def view_func1():
pass #your code here


@app.route('URL HERE')
def view_func2():
pass #your code here
___

Create a free account to access the full topic