Working on new features

This commit is contained in:
2021-06-21 21:28:51 +02:00
parent e275fb3064
commit dc4919fcd1
16 changed files with 66 additions and 112 deletions

View File

@@ -13,7 +13,7 @@ export default class LocationsController {
})
}
public async add ({ request, response }: HttpContextContract) {
public async store ({ request, response }: HttpContextContract) {
const data = await request.validate(LocationValidator)
await Location.create(data)
return response.status(200).send({