2525
2626@app .route ("/" )
2727def index ():
28- return flask .render_template ("index.html" , message = "Welcome! " )
28+ return flask .render_template ("index.html" , message = "You've reached the index page. " )
2929
3030
31- @app .route ("/authorize" )
32- def authorize ():
33- # Set the username to test the navigation bar.
34- flask .session ["username" ] = "Test Username"
35-
36- return flask .render_template ("index.html" ,
37- message = "Test username stored in session." )
38-
39-
40- @app .route ("/clear" )
41- def clear_credentials ():
42- flask .session .clear ()
43-
44- return flask .render_template ("index.html" , message = "Session cleared." )
45-
31+ @app .route ("/classroom-addon" )
32+ def classroom_addon ():
33+ return flask .render_template ("addon-discovery.html" , message = "You've reached the addon discovery page." )
4634
4735if __name__ == "__main__" :
4836 # You have several options for running the web server.
@@ -56,14 +44,14 @@ def clear_credentials():
5644 # Run the application on a local server, defaults to http://localhost:5000.
5745 # Note: the OAuth flow requires a TLD, *not* an IP address; "localhost" is
5846 # acceptable, but http://127.0.0.1 is not.
59- # app.run(debug=True)
47+ app .run (debug = True )
6048
6149 ### OPTION 2: Secure localhost
6250 # Run the application over HTTPs with a locally stored certificate and key.
6351 # Defaults to https://localhost:5000.
64- app .run (host = "localhost" ,
65- ssl_context = ("localhost.pem" , "localhost-key.pem" ),
66- debug = True )
52+ # app.run(host="localhost",
53+ # ssl_context=("localhost.pem", "localhost-key.pem"),
54+ # debug=True)
6755
6856 ### OPTION 3: Production- or cloud-ready server
6957 # Start a Gunicorn server, which is appropriate for use in
0 commit comments