adonisjs / adonis-cli

Legacy Adonis CLI module to generate new application
MIT License
133 stars 49 forks source link

Resourceful Controllers using delete method instead of destroy #86

Closed thetutlage closed 6 years ago

thetutlage commented 6 years ago

From @bolt12 on January 21, 2018 19:1

I just noticed that if i create a new Controller using

adonis make:controller <name> --resource

it will create a new file with all route resources but the last one is called delete, and looking into the docs it should be destroy.

Copied from original issue: adonisjs/adonis-api-app#14

ammezie commented 6 years ago

@thetutlage already working on this?

RomainLanz commented 6 years ago

This is already fixed.

A PR was sent by @watzon on the 7 November https://github.com/adonisjs/adonis-cli/commit/86e00216b2968dbb83720083bb938bf63e83f392 Probably need to be released 😄

ammezie commented 6 years ago

Awesome!!!