import { IDocumentStorage , MongoManager , } from "@fluidframework/server-services-core" ; import { Router } from "express" ; import { Provider } from "nconf" ; import * as ordering from "./ordering" ; import * as storage from "./storage" ; export interface IRoutes { ordering : Router ; storage : Router ; } export function create ( config , mongoManager , documentStorage ) { return { ordering : ordering . create ( config , documentStorage , mongoManager ) , storage : storage . create ( config ) , } ; }