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):
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):