added some initial routes, ways to show overall stats, matches
This commit is contained in:
24
Sources/App/Models/Stats.swift
Normal file
24
Sources/App/Models/Stats.swift
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user