mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-02-03 15:31:44 +01:00
Add I18n
This commit is contained in:
@@ -22,7 +22,8 @@ import Server from '@ioc:Adonis/Core/Server'
|
||||
*/
|
||||
Server.middleware.register([
|
||||
() => import('@ioc:Adonis/Core/BodyParser'),
|
||||
() => import('App/Middleware/SilentAuth')
|
||||
() => import('App/Middleware/SilentAuth'),
|
||||
() => import('App/Middleware/DetectUserLocale')
|
||||
])
|
||||
|
||||
/*
|
||||
|
||||
@@ -23,7 +23,7 @@ Route.get('/source', async ({response}: HttpContextContract) => {
|
||||
Route.get('health', async ({response}: HttpContextContract) => {
|
||||
const report = await HealthCheck.getReport()
|
||||
const isLive = await HealthCheck.isLive()
|
||||
const isReady = await HealthCheck.isReady()
|
||||
const isReady = HealthCheck.isReady()
|
||||
return report.healthy ? response.ok({ isLive, isReady, report: report.report }) : response.badRequest({ isLive, isReady, report: report.report })
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user