@athenna/http 4.21.0 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,23 +2,23 @@ import { Controller, type Context } from '@athenna/http'
|
|
|
2
2
|
|
|
3
3
|
@Controller()
|
|
4
4
|
export class {{ namePascal }} {
|
|
5
|
-
public async index({ response }: Context)
|
|
5
|
+
public async index({ response }: Context) {
|
|
6
6
|
return response.status(200).send([{}])
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
public async store({ response }: Context)
|
|
9
|
+
public async store({ response }: Context) {
|
|
10
10
|
return response.status(201).send({})
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
public async show({ response }: Context)
|
|
13
|
+
public async show({ response }: Context) {
|
|
14
14
|
return response.status(200).send({})
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
public async update({ response, params }: Context)
|
|
17
|
+
public async update({ response, params }: Context) {
|
|
18
18
|
return response.status(200).send({ id: params.id })
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
public async delete({ response }: Context)
|
|
21
|
+
public async delete({ response }: Context) {
|
|
22
22
|
return response.status(204)
|
|
23
23
|
}
|
|
24
24
|
}
|