change Map to Collection in server routes

merge-requests/1/merge
Matthew 2019-11-17 20:52:41 -05:00
parent 7e8256a474
commit 0b25a67575
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 3 additions and 3 deletions

View File

@ -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<string, Route>;
public routes: Collection<Route>
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();