UNPKG

restful-started

Version:
17 lines (16 loc) 500 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = __importDefault(require("../index")); index_1.default .configRoute({}) .configDb({ url: "postgres://postgres:root@localhost/test" }) .start({ listen: 5001 }) .catch((err) => { console.error("启动发生错误", err); process.exit(-1); });