15 lines
304 B
JavaScript
15 lines
304 B
JavaScript
const express = require('express')
|
|
const app = express()
|
|
const port = 4000
|
|
|
|
|
|
|
|
app.get('/api/br', (req, res) => {
|
|
var methods = req.query.callback
|
|
var dd = {
|
|
title: '别人的后端',
|
|
};
|
|
res.json(dd)
|
|
})
|
|
|
|
app.listen(port, () => console.log(`Example app listening on port ${port}!`)) |