mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
Move server.js entrypoint to bin directory
This commit is contained in:
@@ -5,6 +5,7 @@ import logger from 'koa-logger'
|
||||
import mongoose from 'mongoose'
|
||||
import session from 'koa-generic-session'
|
||||
import passport from 'koa-passport'
|
||||
import serve from 'koa-static'
|
||||
|
||||
import config from './config'
|
||||
import { errorMiddleware } from '../src/middleware'
|
||||
@@ -18,6 +19,7 @@ app.use(convert(logger()))
|
||||
app.use(convert(bodyParser()))
|
||||
app.use(convert(session()))
|
||||
app.use(errorMiddleware())
|
||||
app.use(convert(serve(`${process.cwd()}/docs/`)))
|
||||
|
||||
require('./passport')
|
||||
app.use(passport.initialize())
|
||||
@@ -1,3 +1,3 @@
|
||||
require("babel-core/register")();
|
||||
require("babel-polyfill");
|
||||
require('./config/server.js');
|
||||
require('./bin/server.js');
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import app from '../config/server'
|
||||
import app from '../bin/server'
|
||||
import supertest from 'supertest'
|
||||
import { expect, should } from 'chai'
|
||||
import { cleanDb } from './utils'
|
||||
|
||||
Reference in New Issue
Block a user