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 regels
341 B

  1. import falcon
  2. import middlewares
  3. import resources
  4. import constants
  5. #from constants import *
  6. def create():
  7. api = falcon.API(media_type=constants.MEDIA_CSV, middleware=[
  8. middlewares.AuthMiddleware(constants.USER_AGENT),
  9. middlewares.RequireCSV()
  10. ])
  11. api.add_route(constants.ROUTES_POSITIONS, resources.PositionsResource())
  12. return api