mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-20 06:51:36 +01:00
working
This commit is contained in:
32
app/Controllers/Http/StatsController.ts
Normal file
32
app/Controllers/Http/StatsController.ts
Normal 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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user