mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
working
This commit is contained in:
@@ -6,11 +6,15 @@ import DockerCommand from "App/Models/DockerCommand";
|
||||
export default class StatsController {
|
||||
|
||||
public async get ({response}: HttpContextContract) {
|
||||
const weekly = await getWeeklyStats();
|
||||
const monthly = await getMonthlyStats();
|
||||
const total = await getTotalStats();
|
||||
const other = await getOtherStats();
|
||||
return response.status(200).send({
|
||||
weekly: getWeeklyStats(),
|
||||
monthly: getMonthlyStats(),
|
||||
total: getTotalStats(),
|
||||
other : getOtherStats()
|
||||
weekly: weekly,
|
||||
monthly: monthly,
|
||||
total: total,
|
||||
other : other
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user