upload allow json

This commit is contained in:
k8w 2022-02-26 15:33:45 +08:00
parent 3ae8b81da4
commit ad022ba3f8

View File

@ -6,7 +6,8 @@ import { serviceProto } from "./shared/protocols/serviceProto";
// Create the Server // Create the Server
const server = new HttpServer(serviceProto, { const server = new HttpServer(serviceProto, {
port: 3000, port: 3000,
cors: '*' cors: '*',
json: true
}); });
// Flow: Serve static files // Flow: Serve static files