This commit is contained in:
2020-12-19 21:22:42 +01:00
parent 7478e85bae
commit 13211b7192
2 changed files with 9 additions and 6 deletions

View File

@@ -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
})
}

View File

@@ -12,7 +12,7 @@ Route.get('/health', async ({ response }) => {
Route.get('/', async ({response}: HttpContextContract) => {
response.status(200).send({
domain: "api.arthurdanjou.fr",
domain: BASE_URL,
version: "1.0",
routes: {
deezer_data: `${BASE_URL}/deezer`,
@@ -33,7 +33,6 @@ Location: get Last + Add location + View history
Deezer Songs:
Tasks: kernel : setTimeout or cron
Dev hours: 5min
Deezer songs: 1min
*/