mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 14:01:44 -04:00
10 lines
338 B
TypeScript
10 lines
338 B
TypeScript
import { Request, Response } from 'express';
|
|
import { getStepContent } from '../utils/get-step-contents';
|
|
|
|
export const stepRoute = async (req: Request, res: Response): Promise<void> => {
|
|
const { superblock, block, step } = req.params;
|
|
|
|
const stepContents = await getStepContent(superblock, block, step);
|
|
res.json(stepContents);
|
|
};
|