0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Merge branch 'dbmercer-patch-1' of git://github.com/dbmercer/cowboy.git

This commit is contained in:
Loïc Hoguin 2012-10-11 20:48:29 +02:00
commit 7b3d9943a9
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,6 @@
{deps, [ {deps, [
{cowboy, ".*", {cowboy, ".*",
{git, "git://github.com/extend/cowboy.git", "master"}} {git, "git://github.com/extend/cowboy.git", "master"}},
{mimetypes, ".*",
{git, "git://github.com/spawngrid/mimetypes.git", "master"}}
]}. ]}.

View file

@ -14,7 +14,8 @@ start(_Type, _Args) ->
Dispatch = [ Dispatch = [
{'_', [ {'_', [
{['...'], cowboy_static, [ {['...'], cowboy_static, [
{directory, {priv_dir, static, []}} {directory, {priv_dir, static, []}},
{mimetypes, {fun mimetypes:path_to_mimes/2, default}}
]} ]}
]} ]}
], ],