mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-09 07:39:06 +00:00
Added linemanjs as frontend
This commit is contained in:
21
frontend/config/server.js
Normal file
21
frontend/config/server.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/* Define custom server-side HTTP routes for lineman's development server
|
||||
* These might be as simple as stubbing a little JSON to
|
||||
* facilitate development of code that interacts with an HTTP service
|
||||
* (presumably, mirroring one that will be reachable in a live environment).
|
||||
*
|
||||
* It's important to remember that any custom endpoints defined here
|
||||
* will only be available in development, as lineman only builds
|
||||
* static assets, it can't run server-side code.
|
||||
*
|
||||
* This file can be very useful for rapid prototyping or even organically
|
||||
* defining a spec based on the needs of the client code that emerge.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
drawRoutes: function(app) {
|
||||
// app.get('/api/greeting/:message', function(req, res){
|
||||
// res.json({ message: "OK, "+req.params.message });
|
||||
// });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user