Files
microservices/gateway/server.ts
2024-09-27 01:14:21 +08:00

16 lines
274 B
TypeScript

const path = require('path');
import { join } from "path";
import gateway from "express-gateway";
// const gateway = require('express-gateway');
class run {
constructor () {
//@ts-ignore
gateway()
.load(join(__dirname, 'config'))
.run();
}
}
new run()