fix middlewares withAuthentication

This commit is contained in:
srgooglo 2022-09-05 04:40:15 +02:00
parent eb75941d52
commit 94228561b1

View File

@ -207,7 +207,7 @@ export default class PostsController extends Controller {
put = { put = {
"/post": { "/post": {
middlewares: ["withAuthentification"], middlewares: ["withAuthentication"],
fn: Schematized({ fn: Schematized({
required: ["message"], required: ["message"],
select: ["message", "additions"], select: ["message", "additions"],
@ -222,7 +222,7 @@ export default class PostsController extends Controller {
}) })
}, },
"/toogle_like": { "/toogle_like": {
middlewares: ["withAuthentification"], middlewares: ["withAuthentication"],
fn: Schematized({ fn: Schematized({
required: ["post_id"], required: ["post_id"],
select: ["post_id"], select: ["post_id"],
@ -248,7 +248,7 @@ export default class PostsController extends Controller {
}) })
}, },
"/like": { "/like": {
middlewares: ["withAuthentification"], middlewares: ["withAuthentication"],
fn: Schematized({ fn: Schematized({
required: ["post_id"], required: ["post_id"],
select: ["post_id"], select: ["post_id"],
@ -272,7 +272,7 @@ export default class PostsController extends Controller {
}) })
}, },
"/unlike": { "/unlike": {
middlewares: ["withAuthentification"], middlewares: ["withAuthentication"],
fn: Schematized({ fn: Schematized({
required: ["post_id"], required: ["post_id"],
select: ["post_id"], select: ["post_id"],