Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 661 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 661 Bytes

Welcome to Raspberry Pi workshop

I hope everyone learnt how to setup a Raspberry Pi and run Nginx server on it. Now we will be building a simple API using Flask.

Please copy the code below and save it with <your_name>.py inside src/routes folder. For example, if your name is bharath, then name of the file should be bharath.py.

Here is the code:

from flask_restful import Resource

class Route(Resource):
	def get(self):
		return 'Hello, World!'

Replace the 'Hello, World!' with whatever you want.

Click here for detailed explanation