Skip to content

Instantly share code, notes, and snippets.

@Gishi1
Gishi1 / server.js
Created April 10, 2017 17:47 — forked from omkz/server.js
node.js - routing aplikasi node.js
var http = require("http");
var url = require('url');
var fs = require('fs');
var server = http.createServer(function(request, response){
console.log('Connection');
var path = url.parse(request.url).pathname;
switch(path){
case '/':