This commit is contained in:
2020-12-19 18:57:19 +01:00
parent c7e433c077
commit 48fa997811
11 changed files with 178 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
export default class StatsController {
public async get ({response}: HttpContextContract) {
return response.status(200).send({
daily: this.getDailyStats(),
weekly: this.getWeeklyStats(),
monthly: this.getMontlyStats()
})
}
getDailyStats() {
return {
development_hours: 0
}
}
getWeeklyStats() {
return {
development_hours: 0
}
}
getMontlyStats() {
return {
development_hours: 0
}
}
}