Split the code, add file server example.

This commit is contained in:
SukantGujar
2019-03-11 13:41:55 +05:30
parent 45439ef50d
commit 2d2d20f6e9
16 changed files with 560 additions and 135 deletions

6
src/ContentProvider.ts Normal file
View File

@@ -0,0 +1,6 @@
import { Request } from "express";
import { Content } from "./Content";
/**
* @type {function (Request): Promise<Content>}
*/
export type ContentProvider = (req: Request) => Promise<Content>;