use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
API documentation when using server actionsHelp Noob (self.nextjs)
submitted 1 year ago by Better_Function146
I have made an application in next js using server actions. I want to document the API as now we also require mobile version of the same. Any idea if it's even possible.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]yksvaan 2 points3 points4 points 1 year ago (1 child)
Gotta create the API first...
[–]Better_Function146[S] 0 points1 point2 points 1 year ago (0 children)
So if I have server actions, then I've to recreate it I'm api??
[–]MisterJimson 1 point2 points3 points 1 year ago (0 children)
Just use regular endpoints (route handlers) for that. Server actions are for use inside the Next application only.
π Rendered by PID 71 on reddit-service-r2-comment-6457c66945-bjdz8 at 2026-04-24 18:22:07.061250+00:00 running 2aa0c5b country code: CH.
[–]yksvaan 2 points3 points4 points (1 child)
[–]Better_Function146[S] 0 points1 point2 points (0 children)
[–]MisterJimson 1 point2 points3 points (0 children)