UNPKG

alpha-version-dce-check-in-api

Version:

API for taking attendance and checking people in.

21 lines (20 loc) 848 B
import express from 'express'; import { Collection } from 'dce-mango'; import { genRouteHandler } from 'dce-reactkit'; import CanvasAPI from './shared/types/CanvasAPI'; import RecordAttendanceFunction from './shared/types/RecordAttendanceFunction'; /** * Function to add the dce-check-in-ui backend to your Express app. * @author Benedikt Arnarsson * @param app the Express app that will handle the check-in UI backend calls. * @param recordAttendance function for recording student attendance. * @param getCanvasAPI function for retrieving the Canvas API. */ declare const addCheckInRoutes: (opts: { app: express.Application; recordAttendance: RecordAttendanceFunction; getCanvasAPI: () => CanvasAPI; CollectionCons: typeof Collection; handlerWrapper: typeof genRouteHandler; }) => void; export default addCheckInRoutes;