-# 
+#
 # Fake gravity express app
-# 
+#
 
 _ = require 'underscore'
 express = require 'express'

    res.send fabricate 'profile',
      owner_type: 'PartnerGallery'
      owner: fabricate('partner', id: 'gagosian-gallery')
  else
    res.send fabricate('profile', owner_type: 'User')

gravity.get '/api/v1/partner/:id/shows', (req, res) ->
  return res.send [] if req.query.page > 2
  res.send [fabricate('show', status: 'closed', featured: true), fabricate('show', status: 'running', featured: false)]  

gravity.get '/api/v1/search/filtered/fair/:id/options', (req, res) ->
  res.send { medium: { Painting: 'painting' } }

gravity.get '/api/v1/me', (req, res) ->
  res.send [fabricate 'user']

gravity.all '*', (req, res) -> res.send 404, "Not Found."
