i have app/[user]/post/[postid]. how can i acces the value of param user on the page postid
Answered
Field Sparrow posted this in #help-forum
Field SparrowOP
i want to make sure a post is accessible only when the user is its creator
Answered by Japanese jack mackerel
in the page or layout file of the [postid] folder.
4 Replies
Japanese jack mackerel
in the page or layout file of the [postid] folder.
Answer
@Japanese jack mackerel in the page or layout file of the [postid] folder.
Field SparrowOP
yees i thought i could only get [postid]
but params returns and object with every param so yes
Japanese jack mackerel
Ah yes either just get params or destructure it