You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
476 B
JavaScript
18 lines
476 B
JavaScript
/*
|
|
This is main file which will contain all of our endpoints.
|
|
Once we have enough endpoints defined we start breaking them into modules for better code readability
|
|
*/
|
|
|
|
var express = require('express');
|
|
var app = express();
|
|
|
|
app.get('/api',function(req,res){
|
|
res.send("Hey! You're looking at the matterwiki API");
|
|
});
|
|
|
|
app.use(express.static(__dirname + '/client'));
|
|
|
|
app.listen(5000 || process.env.PORT, function(){
|
|
console.log("The magic is happening on port 5000");
|
|
});
|