commit
						96a5271822
					
				| @ -6,5 +6,18 @@ from truthseeker.logic import game_logic | ||||
| routes_ui = flask.Blueprint("ui", __name__) | ||||
| 
 | ||||
| @routes_ui.route("/") | ||||
| def hello(): | ||||
|     return "Hello World!" | ||||
| def index(): | ||||
|     return flask.render_template("index.html") | ||||
| 
 | ||||
| @routes_ui.route("/lobby/<game_id>") | ||||
| def lobby(game_id): | ||||
|     # rendered by the javascript client-side | ||||
|     return flask.render_template("lobby.html") | ||||
| 
 | ||||
| @routes_ui.route("/solo") | ||||
| def solo(): | ||||
|     return flask.render_template("game.html") | ||||
| 
 | ||||
| @routes_ui.route("/multi") | ||||
| def multi(): | ||||
|     return flask.render_template("game.html") | ||||
|  | ||||
							
								
								
									
										3
									
								
								truthseeker/templates/game.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								truthseeker/templates/game.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| game.html template | ||||
| <br> | ||||
| <a href="/">Return to index</a> | ||||
							
								
								
									
										5
									
								
								truthseeker/templates/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								truthseeker/templates/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| index.html template | ||||
| <br> | ||||
| <a href="/lobby/ABCDEF">Go to a lobby</a> | ||||
| <br> | ||||
| <a href="/solo">Go to a solo game</a> | ||||
							
								
								
									
										3
									
								
								truthseeker/templates/lobby.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								truthseeker/templates/lobby.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| lobby.html template | ||||
| <br> | ||||
| <a href="/multi">Go to the multi game</a> | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user