Open hawkrives opened 6 years ago
@rye I just rediscovered this issue… what do you think about it? I think that I think it still sounds good.
I think that this makes sense. It'd be useful.
Here's an initial list of URLs and redirect locations:
(also, I'm using 307 instead of 302 so that the original method [POST/PATCH/etc] is preserved; https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307)
GET /v1/redirect/app-new-issue
307 https://github.com/StoDevX/AAO-React-Native/issues/new
GET /v1/redirect/stolaf-directory
307 https://www.stolaf.edu/personal/index.cfm
GET /v1/redirect/stolaf-map
307 https://www.myatlascms.com/map/index.php?id=294
GET /v1/redirect/stolaf-moodle
307 https://moodle.stolaf.edu/
GET /v1/redirect/stolaf-calendar
307 https://wp.stolaf.edu/calendar/
GET /v1/redirect/oleville-calendar
307 https://oleville.com/events/
GET /v1/redirect/northfield-calendar
307 http://visitingnorthfield.com/events/calendar/
GET /v1/redirect/stolaf-tes
307 https://www.stolaf.edu/apps/tes/
GET /v1/redirect/stolaf-wifi-report
307 https://www.stolaf.edu/apps/all-about-olaf/wifi/index.cfm?fuseaction=Submit
GET /v1/redirect/app-repository
307 https://github.com/StoDevX/AAO-React-Native
GET /v1/redirect/ksto-home
307 https://pages.stolaf.edu/ksto/
GET /v1/redirect/krlx-home
307 http://www.krlx.org/schedule/
GET /v1/redirect/krlx-stream-embed
307 http://live.krlx.org
GET /v1/redirect/krlx-stream-native
307 http://radio.krlx.org/mp3/high_quality
GET /v1/redirect/ksto-stream-embed
307 https://www.stolaf.edu/multimedia/play/embed/ksto.html
GET /v1/redirect/stolaf-olecard-login
307 https://www.stolaf.edu/apps/olecard/checkbalance/authenticate.cfm
GET /v1/redirect/stolaf-olecard-api
307 https://www.stolaf.edu/apps/olecard/checkbalance/api.cfm
I've left out the course data and SIS endpoints, since they'll need some more thought (they're used dynamically to build other request strings.)
For instance, I don't want to proxy the Directory webview through the server, but we could make /v1/link/directory 307 to Carleton.edu/directory to handle changes on their end.
I think we should make a named 307 endpoint for each URL that the app handles on its own - that means CARLS would have links for TheHub, Stalkernet, Moodle, and the Balances parser, at least, while AAO would have Balances, Directory, Moodle, … the KSTO endpoint?
The links in the Help wouldn't need to be put on the server, since they're changeable remotely.