From 3579fc602e360659730e6ecfaee509270b16db50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregori=20Pi=C3=B1eres?= Date: Tue, 9 Jun 2020 21:01:24 -0400 Subject: [PATCH] style: document methods of resource-controller --- templates/resource-controller.txt | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/templates/resource-controller.txt b/templates/resource-controller.txt index 5ea0db00..b0955014 100644 --- a/templates/resource-controller.txt +++ b/templates/resource-controller.txt @@ -1,24 +1,66 @@ import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext' export default class {{ filename }} { + /** + * Display a listing of the resource. + * + * @param {HttpContextContract} ctx + */ public async index (ctx: HttpContextContract) { + // TODO: Implement index method } + /** + * Show the form for creating a new resource. + * + * @param {HttpContextContract} ctx + */ public async create (ctx: HttpContextContract) { + // TODO: Implement create method } + /** + * Store a newly created resource in storage. + * + * @param {HttpContextContract} ctx + */ public async store (ctx: HttpContextContract) { + // TODO: Implement store method } + /** + * Display the specified resource. + * + * @param {HttpContextContract} ctx + */ public async show (ctx: HttpContextContract) { + // TODO: Implement show method } + /** + * Show the form for editing the specified resource. + * + * @param {HttpContextContract} ctx + */ public async edit (ctx: HttpContextContract) { + // TODO: Implement edit method } + /** + * Update the specified resource in storage. + * + * @param {HttpContextContract} ctx + */ public async update (ctx: HttpContextContract) { + // TODO: Implement update method } + /** + * Remove the specified resource from storage. + * + * @param {HttpContextContract} ctx + */ public async destroy (ctx: HttpContextContract) { + // TODO: Implement destroy method } }