Commit 344da171 by linboxuan

ucommune-back operate api

parent 6701fd59
......@@ -6,7 +6,7 @@ const axios = require('axios')
module.exports = function (app) {
app.all("/api/*", async function (req, res, next) {
app.all("/operate/*", async function (req, res, next) {
var result = system.getResult(null, "req method must is post");
if (req.method != "POST") {
res.end(JSON.stringify(result));
......@@ -37,7 +37,7 @@ module.exports = function (app) {
next();
});
app.post('/api/:gname/:qname/:method', function (req, res) {
app.post('/operate/:gname/:qname/:method', function (req, res) {
var classPath = req.params["qname"];
var methodName = req.params["method"];
var gname = req.params["gname"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment