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

@@ -11,7 +11,7 @@ export default class ProjectsController {
})
}
public async add ({ request, response}: HttpContextContract) {
public async store ({ request, response}: HttpContextContract) {
const data = await request.validate(ProjectValidator)
await Project.create(data)
return response.status(200).send({