From 0b25a675755ea5622c0b61d6db366a527b36321d Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 20:52:41 -0500 Subject: [PATCH] change Map to Collection in server routes --- src/api/Server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/Server.ts b/src/api/Server.ts index 0c85699..3c4d16b 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -5,10 +5,10 @@ import helmet from 'helmet'; import fs from 'fs-extra'; import { Client } from '..'; import { Security } from '.'; -import { Route } from '../class'; +import { Collection, Route } from '../class'; export default class Server { - public routes: Map; + public routes: Collection public client: Client; @@ -20,7 +20,7 @@ export default class Server { constructor(client: Client, options?: { port: number }) { this.options = options; - this.routes = new Map(); + this.routes = new Collection(); this.client = client; this.security = new Security(this.client); this.app = express();