add: built in api support is added, as an example GET /api/health-check endpoint is added #113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi @mehmetsefabalik ,
Could you add feature usage documentation?
@ -0,0 +1,5 @@import { NextApiRequest, NextApiResponse } from "next";Could you add return typedef?
this is the feature of nextjs, it is well documented in nextjs docs. So the user of this boilerplate is supposed to read this feature from nextjs docs.
@ -0,0 +1,5 @@import { NextApiRequest, NextApiResponse } from "next";return typedef is any, I added it
@ -0,0 +1,5 @@import { NextApiRequest, NextApiResponse } from "next";Let's make this 'OK', instead of 'working'.
We can still point to related documentation links 👍
@ -0,0 +1,5 @@import { NextApiRequest, NextApiResponse } from "next";done
done
Hi @mehmetsefabalik, thank you for your contribution. I noticed that only get requests are handled by the custom server side. Since you are adding the api routes support, can you check the server files to handle other http methods?
server/index.ts#L34
I'm guessing changing this line from
.get()to.all()might be enough.done
@ -0,0 +1,5 @@import { NextApiRequest, NextApiResponse } from "next";Thank you for contribution @mehmetsefabalik