added some initial routes, ways to show overall stats, matches

This commit is contained in:
Michael Simard
2020-05-29 14:52:20 -05:00
parent c6f7dcec32
commit f48ddd77bf
9 changed files with 277 additions and 55 deletions

View File

@@ -8,10 +8,10 @@ public func configure(_ app: Application) throws {
// app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
app.databases.use(.postgres(
hostname: Environment.get("DATABASE_HOST") ?? "localhost",
username: Environment.get("DATABASE_USERNAME") ?? "fanosphere",
password: Environment.get("DATABASE_PASSWORD") ?? "pw4fanosphere",
database: Environment.get("DATABASE_NAME") ?? "codmw"
hostname: Environment.get("DATABASE_HOST") ?? "sledsoft.com",
username: Environment.get("DATABASE_USERNAME") ?? "cod",
password: Environment.get("DATABASE_PASSWORD") ?? "pw4cod",
database: Environment.get("DATABASE_NAME") ?? "cod_db"
), as: .psql)
app.migrations.add(CreateMatch())