mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 05:02:17 -04:00
14 lines
321 B
TypeScript
14 lines
321 B
TypeScript
import { Request, Response } from 'express';
|
|
import { getModules } from '../utils/get-full-stack-blocks';
|
|
|
|
export const moduleRoute = async (
|
|
req: Request,
|
|
res: Response
|
|
): Promise<void> => {
|
|
const { superblock, chapter } = req.params;
|
|
|
|
const steps = await getModules(superblock, chapter);
|
|
|
|
res.json(steps);
|
|
};
|