mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-15 04:29:26 +01:00
33 lines
541 B
TypeScript
33 lines
541 B
TypeScript
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
|
|
}
|
|
}
|
|
|
|
}
|