phlask / phlask-data-handlers

Phlask middleware to help make data ingestion and presentation more efficient!
5 stars 2 forks source link

Foraging Flask Router (Update, Delete, Add, & View funcs.) #12

Closed ojimba01 closed 1 year ago

ojimba01 commented 1 year ago

As the Phlask Dashboard is gaining new interest and usage, we want to make it as usable and accessible as possible. One of the ways we will achieve this is by making sure all of the resources have the proper flask routes in our app.py file.

To get started go in to the dashboard folder which is located in the main phlask-data-handlers folder. From this point open the app.py file and begin creating resource routes for the foraging taps.

**please keep in mind we are following the styling guide for camelCase while adding new routers EXAMPLE:

@dashboard.route('/[ACTION]Tap[RESOURCE]/<int:tapnum>', methods = ['GET','POST']) def [ACTION]Tap[RESOURCE](tapnum): Format code as this: @dashboard.route('/updateTapForaging/<int:tapnum>', methods = ['GET','POST']) def updateTapForaging(tapnum):