express-api-base/router/example.js

14 lines
269 B
JavaScript
Raw Permalink Normal View History

2024-06-28 09:20:46 +00:00
'use strict'
// Dependencies
const express = require('express')
// Routes
const router = express.Router()
// Example route GET /api/example
router.get('/', async (req, res, next) => {
res.status(200).json({ result: 'Example route OK' })
})
module.exports = router