alpha-version-dce-check-in-api
Version:
API for taking attendance and checking people in.
27 lines (21 loc) • 755 B
text/typescript
// Import Express
import express from 'express';
// Import routes
import addGrouperRoutes from './addGrouperRoutes';
import addOccurrenceRoutes from './addOccurrenceRoutes';
/**
* Create a router with all of the TTM endpoints for the check-in API.
* @author Benedikt Arnarsson
* @param recordAttendance function for saving attendance records.
* @param getCanvasAPI function for interacting with Canvas.
* @returns an express Router with all of the endpoints.
*/
const addTTMRoutes = (): express.Router => {
const router = express.Router();
// Routes for interacting with occurrences
addOccurrenceRoutes(router);
// Routes for interacting the dce-live-grouper
addGrouperRoutes(router);
return router;
};
export default addTTMRoutes;