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 = function(app) {
> require('./virtualmachines')(app);
> require('./hardwares')(app);
> };
>
> but only api calls from virtualmachines are coming with results when I do
>
> curl localhost:8080/api/virtualmachines
>
> What am I missing here. Why only the first route loads?
>
> Thanks much!
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.