MyMICDS / MyMICDS-SDK

The official TypeScript client for connecting to the MyMICDS API
MIT License
0 stars 0 forks source link

Refresh Canvas/Portal classes, feeds, etc. when URLs are updated #2

Open michaelgira23 opened 5 years ago

michaelgira23 commented 5 years ago

When url data is updated, invalidate all information that relied on these feeds.

GrantBaum commented 2 years ago

what part of the code is this in?

michaelgira23 commented 2 years ago

Route for changing Canvas URL: https://github.com/MyMICDS/MyMICDS-v2/blob/c2812a543aefa2ae71212f4b1309cd137de7836d/src/routes/canvasAPI.ts#L20

Route for changing Portal URLs: https://github.com/MyMICDS/MyMICDS-v2/blob/c2812a543aefa2ae71212f4b1309cd137de7836d/src/routes/portalAPI.ts#L29-L57

Function for refreshing Canvas cache: https://github.com/MyMICDS/MyMICDS-v2/blob/c2812a543aefa2ae71212f4b1309cd137de7836d/src/libs/feeds.ts#L13