chanded api names
This commit is contained in:
@@ -9,7 +9,7 @@ export default defineConfig({
|
||||
{
|
||||
name: "data-api",
|
||||
configureServer(server) {
|
||||
server.middlewares.use("/api/data", (req, res, next) => {
|
||||
server.middlewares.use("/frontend-api/data", (req, res, next) => {
|
||||
if (req.method === "POST") {
|
||||
let body = "";
|
||||
req.on("data", (chunk) => { body += chunk; });
|
||||
|
||||
Reference in New Issue
Block a user