Skip to content
Browse files

Update examples.

  • Loading branch information...
1 parent a5ea441 commit ae8b3ffbe9b7d740f74b6bf802b7a679fb5ad35b @francois2metz committed Oct 11, 2011
Showing with 3 additions and 5 deletions.
  1. +2 −3 examples/test_client.js
  2. +1 −2 examples/test_server.js
View
5 examples/test_client.js
@@ -1,6 +1,5 @@
-require.paths.unshift(__dirname +"/../lib");
-var spore = require('spore'),
- json = require('middlewares').json();
+var spore = require('../lib/spore'),
+ json = spore.middlewares.json();
var twitterClient = spore.createClient(json, {
"base_url" : "http://api.twitter.com/1",
View
3 examples/test_server.js
@@ -1,5 +1,4 @@
-require.paths.unshift(__dirname +"/../lib");
-var spore = require('spore');
+var spore = require('../lib/spore');
var express = require("express");
var app = express.createServer();

0 comments on commit ae8b3ff

Please sign in to comment.
Something went wrong with that request. Please try again.