mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
tokens
This commit is contained in:
@@ -21,3 +21,5 @@ courses:
|
||||
name: adv-frontend-old
|
||||
- path: ./1810/2026-spring-alex/modules/
|
||||
name: Web Intro
|
||||
- path: ./1810/2025-spring-alex/in-person/
|
||||
name: web-2025
|
||||
|
||||
@@ -1,4 +1,22 @@
|
||||
# https://developerdocs.instructure.com/services/canvas/file.all_resources/tabs#method.tabs.index
|
||||
###
|
||||
GET https://snow.instructure.com/api/v1/courses/1155200/tabs
|
||||
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
||||
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
||||
|
||||
|
||||
###
|
||||
GET https://snow.instructure.com/api/v1/users/self
|
||||
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
||||
|
||||
# https://developerdocs.instructure.com/services/canvas/TokensController/create
|
||||
###
|
||||
POST https://snow.instructure.com/api/v1/users/self/tokens
|
||||
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"token": {
|
||||
"purpose": "canvas-management-test",
|
||||
"expires_at": "2027-01-01T00:00:00Z"
|
||||
}
|
||||
}
|
||||
@@ -12,12 +12,11 @@ export interface DraggingContextInterface {
|
||||
itemDropOnDay: (e: DragEvent, droppedOnDay: string) => void;
|
||||
itemDropOnModule: (e: DragEvent, moduleName: string) => void;
|
||||
}
|
||||
const defaultDraggingValue: DraggingContextInterface = {
|
||||
export const DraggingContext =
|
||||
createContext<DraggingContextInterface>({
|
||||
itemDropOnDay: () => {},
|
||||
itemDropOnModule: () => {},
|
||||
};
|
||||
export const DraggingContext =
|
||||
createContext<DraggingContextInterface>(defaultDraggingValue);
|
||||
});
|
||||
|
||||
export function useDraggingContext() {
|
||||
return useContext(DraggingContext);
|
||||
|
||||
Reference in New Issue
Block a user