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.
14 lines
376 B
14 lines
376 B
// const tokenRouter = require('express').Router()
|
|
// const qnconfig = require('../config') // 引入七牛云配置
|
|
import express from 'express'
|
|
import { uploadToken } from '../config.js'
|
|
|
|
const tokenRouter = express.Router()
|
|
|
|
tokenRouter.get('/qiniu', (req, res, next) => {
|
|
res.status(200).send(uploadToken)
|
|
})
|
|
|
|
// module.exports = tokenRouter
|
|
export default tokenRouter
|