UNPKG

patternplate-server

Version:

Programmatically serve atomic patterns via a REST API

11 lines (8 loc) 243 B
import getSchema from '../../library/get-schema'; export default function indexRouteFactory(application) { return async function indexRoute() { this.type = 'json'; this.body = await getSchema(application); }; } module.change_code = 1;