begin mg tut framework in be
This commit is contained in:
		
							
								
								
									
										6
									
								
								backend/app/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								backend/app/__init__.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
from flask import Flask
 | 
			
		||||
 | 
			
		||||
app = Flask(__name__)
 | 
			
		||||
 | 
			
		||||
from app import routes
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										7
									
								
								backend/app/routes.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								backend/app/routes.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
from app import app
 | 
			
		||||
 | 
			
		||||
@app.route('/')
 | 
			
		||||
@app.route('/index')
 | 
			
		||||
def index():
 | 
			
		||||
    return "Hello, World!"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user