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