const router = require('koa-router');

const userController = require('../controller/user');

exports.init = (router) => {
  router
  .post('/auth/login', userController.login)
  .post('/auth/register', userController.create)
  .get('/users', userController.show)
}

const router = require('koa-router');

const userController = require('../controller/user');

exports.init = (router) => {
  router
  .post('/auth/sessions', userController.login)
  .post('/auth/users', userController.create)
  .get('/users', userController.show)
}

Update login and signup api url
Update login and signup api url
