mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-26 09:30:27 +01:00
Order Translations by id
This commit is contained in:
@@ -7,7 +7,7 @@ export default class TranslationsController {
|
|||||||
|
|
||||||
public async index ({ response }: HttpContextContract) {
|
public async index ({ response }: HttpContextContract) {
|
||||||
return response.status(200).send({
|
return response.status(200).send({
|
||||||
translations: await Translation.all()
|
translations: await Translation.query().orderBy('id', 'asc')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user