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

@@ -0,0 +1,24 @@
//
// Stats.swift
// App
//
// Created by Michael Simard on 5/29/20.
//
import Foundation
import Fluent
import Vapor
final class Stats: Content {
var winLossRatio:String
var totalWins:Int
var totalLosses:Int
init( winLoss:String, totalWins:Int, totalLosses:Int) {
self.winLossRatio = winLoss
self.totalWins = totalWins
self.totalLosses = totalLosses
}
}