Call rest api to create view and serve it with a slugifyed url #2819
Unanswered
blueray453
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone please give me an working example of :
when i hit
examples.com/my-12th-postwill create view (HTML+CSS) in the server usingapi.examples.com/post/12(whereapi.examples.com/post/12is a rest api).Here,
my-12th-postis the slug ofpost/12's headline.Here, I want two files. One will create the Rest API. The other is for SSR (server side rendering) and slugifying the URL.
json-api.rs
server-side-renderer.rs
Beta Was this translation helpful? Give feedback.
All reactions