const UserController = require('../src/Http/Controllers/User');

const { define, wrap, post, get } = require('spirit-router');
const { json } = require('body-parser');
const express  = require('spirit-express');

module.exports = define('/api', [
  get('/users', UserController.index),
  get('/users/:user_id', ['user_id'], UserController.show),
  wrap(post('/users', ['body'], UserController.store), express(json())),
]);

@@ -89,16 +89,31 @@
 ost, get
+, any, notFound
  %7D = req
@@ -131,24 +131,24 @@
 t-router');%0A
-
 const %7B json
@@ -225,22 +225,17 @@
 );%0A%0A
-module.exports
+const api
  = d
@@ -426,8 +426,63 @@
 )),%0A%5D);%0A
+%0Amodule.exports = define(%5Bapi, any('*', notFound())%5D);%0A

Add default not found route