Using Azure and I use web apps and mobile services. It appears that the Mobile Service is Missing some components which restrict my ability to do traditional/best practice routing. When I clone and examine the project, it appears to lacks index files that exist in an Azure Web App or any home brewed server. Please offer any advice or knowledge that you have about best practice and any modifications to what I have set up for our mobile service.
The below code was how I designed our Mobile Service APIs since they appears to lack an index. Perhaps I should make a dedicated API to tie everything together? Any advice or experience would help us make the right decision. Thanks.
var express = require('express');
var app = module.exports = express();
var bodyParser = require('body-parser');
//configure bodyparser
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())
//test
app.register = function(api) {
api.get('id', getNextUserId);
api.get('get_user_by_email', getUser);
api.post('post_user', postUser)
}