Hi Tito,
Interesting, thanks or sharing.
Arnaud.
Le vendredi 23 février 2018 17:15:06 UTC+1, Tito a écrit :
>
> Hello
>
> This is what I Was looking for
>
> https://github.com/DanWahlin/express-convention-routes
>
> So that when I plug in a new service folder it is aware and picks that
> without
Hello
This is what I Was looking for
https://github.com/DanWahlin/express-convention-routes
So that when I plug in a new service folder it is aware and picks that
without me having to specify a new entry everytime I have a new api endpoint
THanks!
On Thursday, February 15, 2018 at 6:07:27 AM
thanks a lot!
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to
hey Zlato, great question! :) nothing I guess which I think gives me a hint as
to what I need to do
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it,
Hi Tito,
If what you want to do is to organize your routes in several files, say one
per URI you could try something like this:
In your files virtuamachines.js and hardware.js
var express = require('express');
var router = express.Router();
var routes = {
get: function(req, res, next) {
What do you do in those files with the app?
On Wednesday, February 14, 2018 at 8:55:33 PM UTC+1, Tito wrote:
>
> Greetings,
>
> I want to use one index file that is called from my main app.js
>
> routes = require('./routes')(app);
>
> The index.js in that routes folder calls
>
> module.exports =