You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
437 B
15 lines
437 B
// const tokenRouter = require('express').Router()
|
|
// const qnconfig = require('../config') // 引入七牛云配置
|
|
import express from 'express'
|
|
import { uploadToken } from '../config.js'
|
|
import result from '../utils/result.js'
|
|
|
|
const tokenRouter = express.Router()
|
|
|
|
tokenRouter.get('/qiniu', (req, res, next) => {
|
|
res.status(200).send(result(200, 'null', uploadToken))
|
|
})
|
|
|
|
// module.exports = tokenRouter
|
|
export default tokenRouter
|