Skip to content

Commit

Permalink
增加配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Aug 1, 2019
1 parent d12c5b2 commit 67fe0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/api.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const Router = require('koa-router')
const Koa = require('koa')
const axios = require('axios')
const app = new Koa()
const Jx = require('./jx')
const axios = require('axios')
const util = require('./util/util')
const Hcy = require('./api/hcy')
const config = require('./config')
Expand Down Expand Up @@ -35,7 +35,7 @@ router.get('/upload/auth', async ctx => {
})
})

router.get('/get/pv', async function addPv(ctx) {
router.get('/get/pv', async ctx =>{
const pid = parseInt(ctx.query.pid)
let pvNumber = await knex.transaction(async trx => {
let pvs = await knex('pv')
Expand Down

0 comments on commit 67fe0e8

Please sign in to comment.