add factory

This commit is contained in:
tmshv committed 2020-02-15 01:40:07 +03:00
1 parent df2f979b55
commit 80b5297215
8 files changed
+89 -4

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import { Request, Response } from 'express'
import Page from '../core/Page'
import { getPathWithNoTrailingSlash } from '../lib/url'
import { encodePage } from '../api/page'
import { encodePage } from '../factory/page'
export async function getItem(req: Request, res: Response) {
const id = req.params.slug