mirror of
https://gitlab.com/little-lines/backend.git
synced 2024-11-21 18:16:51 +00:00
update send version
This commit is contained in:
parent
d5c994983d
commit
6931a29822
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ app.use(express.json());
|
|||
app.use(cors());
|
||||
app.use('/api/users', require('./routes/userRoute'));
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.json({
|
||||
version: DATE-VERSION
|
||||
});
|
||||
});
|
||||
|
||||
app.listen(process.env.PORT, () => {
|
||||
console.log(`server's running on port ${process.env.PORT}`);
|
||||
|
|
Loading…
Reference in a new issue