14 lines
269 B
JavaScript
14 lines
269 B
JavaScript
|
'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
|