You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
305 B

6 years ago
  1. from flask import Flask, request
  2. from flask_restful import Resource, Api
  3. import json
  4. app = Flask(__name__)
  5. api = Api(app)
  6. buses = {}
  7. with open("modules/databases/announcements.json","r") as f:
  8. announcements = json.loads(f.read())
  9. class Announcement(Resource):
  10. def get(self):
  11. return announcements