SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const express = require('express')
  2.  
  3. const routes = express.Router()
  4.  
  5. const userService = require('../services/userService.js')
  6.  
  7. routes.get('/', (request, response) => {
  8.     return response.sendStatus()
  9. });
  10.  
  11. routes.get('/users', (request, response) => {
  12.     return response.json({
  13.         status: response
  14.         data: 999
  15.     })
  16.     return console.log(userService.getAll())
  17. });
  18.  
  19. module.exports = routes
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top