first commit
This commit is contained in:
23
services/articles/index.js
Normal file
23
services/articles/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const express = require('express')
|
||||
const app = express()
|
||||
const port = 3003
|
||||
|
||||
app.get('/articles/list', (req, res) => {
|
||||
res.json({
|
||||
code: 200,
|
||||
message: '文章服务'
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
app.get('/articles/health', (req, res) => {
|
||||
res.end('OK!');
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`articles service run http://127.0.0.1:${port}`)
|
||||
})
|
||||
Reference in New Issue
Block a user