11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
|
import { Request, Response } from 'express';
|
||
|
import { getSteps } from '../utils/getSteps';
|
||
|
|
||
|
export const blockRoute = async (req: Request, res: Response) => {
|
||
|
const { superblock, block } = req.params;
|
||
|
|
||
|
const steps = await getSteps(superblock, block);
|
||
|
|
||
|
res.json(steps);
|
||
|
};
|