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
-
Can someone please give me an working example of :
when i hit
examples.com/my-12th-post
will create view (HTML+CSS) in the server usingapi.examples.com/post/12
(whereapi.examples.com/post/12
is a rest api).Here,
my-12th-post
is 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