Permalink
Browse files

Moved controllers to controllers/ directory

"home" controller is the default controller now
  • Loading branch information...
1 parent a0c94bc commit 51e394340b25c30395fb53ca051a3c327d84c2e3 @auser committed Jul 1, 2009
Showing with 15,317 additions and 88 deletions.
  1. +6 −0 EMakefile
  2. +17 −21 Makefile
  3. +23 −0 deps/mochiweb/.svn/all-wcprops
  4. +88 −0 deps/mochiweb/.svn/entries
  5. +1 −0 deps/mochiweb/.svn/format
  6. +9 −0 deps/mochiweb/.svn/text-base/LICENSE.svn-base
  7. +11 −0 deps/mochiweb/.svn/text-base/Makefile.svn-base
  8. +1 −0 deps/mochiweb/.svn/text-base/README.svn-base
  9. +9 −0 deps/mochiweb/LICENSE
  10. +11 −0 deps/mochiweb/Makefile
  11. +1 −0 deps/mochiweb/README
  12. +5 −0 deps/mochiweb/deps/.svn/all-wcprops
  13. +28 −0 deps/mochiweb/deps/.svn/entries
  14. +1 −0 deps/mochiweb/deps/.svn/format
  15. +5 −0 deps/mochiweb/doc/.svn/all-wcprops
  16. +9 −0 deps/mochiweb/doc/.svn/dir-prop-base
  17. +28 −0 deps/mochiweb/doc/.svn/entries
  18. +1 −0 deps/mochiweb/doc/.svn/format
  19. +5 −0 deps/mochiweb/ebin/.svn/all-wcprops
  20. +7 −0 deps/mochiweb/ebin/.svn/dir-prop-base
  21. +28 −0 deps/mochiweb/ebin/.svn/entries
  22. +1 −0 deps/mochiweb/ebin/.svn/format
  23. +32 −0 deps/mochiweb/ebin/mochiweb.app
  24. +5 −0 deps/mochiweb/include/.svn/all-wcprops
  25. +28 −0 deps/mochiweb/include/.svn/entries
  26. +1 −0 deps/mochiweb/include/.svn/format
  27. +5 −0 deps/mochiweb/priv/.svn/all-wcprops
  28. +31 −0 deps/mochiweb/priv/.svn/entries
  29. +1 −0 deps/mochiweb/priv/.svn/format
  30. +23 −0 deps/mochiweb/priv/skel/.svn/all-wcprops
  31. +88 −0 deps/mochiweb/priv/skel/.svn/entries
  32. +1 −0 deps/mochiweb/priv/skel/.svn/format
  33. +5 −0 deps/mochiweb/priv/skel/.svn/prop-base/Makefile.svn-base
  34. +9 −0 deps/mochiweb/priv/skel/.svn/prop-base/start-dev.sh.svn-base
  35. +9 −0 deps/mochiweb/priv/skel/.svn/prop-base/start.sh.svn-base
  36. +5 −0 deps/mochiweb/priv/skel/.svn/text-base/Makefile.svn-base
  37. +3 −0 deps/mochiweb/priv/skel/.svn/text-base/start-dev.sh.svn-base
  38. +3 −0 deps/mochiweb/priv/skel/.svn/text-base/start.sh.svn-base
  39. +5 −0 deps/mochiweb/priv/skel/Makefile
  40. +5 −0 deps/mochiweb/priv/skel/deps/.svn/all-wcprops
  41. +28 −0 deps/mochiweb/priv/skel/deps/.svn/entries
  42. +1 −0 deps/mochiweb/priv/skel/deps/.svn/format
  43. +5 −0 deps/mochiweb/priv/skel/doc/.svn/all-wcprops
  44. +28 −0 deps/mochiweb/priv/skel/doc/.svn/entries
  45. +1 −0 deps/mochiweb/priv/skel/doc/.svn/format
  46. +5 −0 deps/mochiweb/priv/skel/ebin/.svn/all-wcprops
  47. +28 −0 deps/mochiweb/priv/skel/ebin/.svn/entries
  48. +1 −0 deps/mochiweb/priv/skel/ebin/.svn/format
  49. +5 −0 deps/mochiweb/priv/skel/include/.svn/all-wcprops
  50. +28 −0 deps/mochiweb/priv/skel/include/.svn/entries
  51. +1 −0 deps/mochiweb/priv/skel/include/.svn/format
  52. +5 −0 deps/mochiweb/priv/skel/priv/.svn/all-wcprops
  53. +31 −0 deps/mochiweb/priv/skel/priv/.svn/entries
  54. +1 −0 deps/mochiweb/priv/skel/priv/.svn/format
  55. +11 −0 deps/mochiweb/priv/skel/priv/www/.svn/all-wcprops
  56. +41 −0 deps/mochiweb/priv/skel/priv/www/.svn/entries
  57. +1 −0 deps/mochiweb/priv/skel/priv/www/.svn/format
  58. +9 −0 deps/mochiweb/priv/skel/priv/www/.svn/prop-base/index.html.svn-base
  59. +8 −0 deps/mochiweb/priv/skel/priv/www/.svn/text-base/index.html.svn-base
  60. +8 −0 deps/mochiweb/priv/skel/priv/www/index.html
  61. +53 −0 deps/mochiweb/priv/skel/src/.svn/all-wcprops
  62. +125 −0 deps/mochiweb/priv/skel/src/.svn/entries
  63. +1 −0 deps/mochiweb/priv/skel/src/.svn/format
  64. +5 −0 deps/mochiweb/priv/skel/src/.svn/prop-base/Makefile.svn-base
  65. +9 −0 deps/mochiweb/priv/skel/src/.svn/text-base/Makefile.svn-base
  66. +14 −0 deps/mochiweb/priv/skel/src/.svn/text-base/skel.app.svn-base
  67. +30 −0 deps/mochiweb/priv/skel/src/.svn/text-base/skel.erl.svn-base
  68. +1 −0 deps/mochiweb/priv/skel/src/.svn/text-base/skel.hrl.svn-base
  69. +22 −0 deps/mochiweb/priv/skel/src/.svn/text-base/skel_app.erl.svn-base
  70. +84 −0 deps/mochiweb/priv/skel/src/.svn/text-base/skel_deps.erl.svn-base
  71. +54 −0 deps/mochiweb/priv/skel/src/.svn/text-base/skel_sup.erl.svn-base
  72. +43 −0 deps/mochiweb/priv/skel/src/.svn/text-base/skel_web.erl.svn-base
  73. +9 −0 deps/mochiweb/priv/skel/src/Makefile
  74. +14 −0 deps/mochiweb/priv/skel/src/skel.app
  75. +30 −0 deps/mochiweb/priv/skel/src/skel.erl
  76. +1 −0 deps/mochiweb/priv/skel/src/skel.hrl
  77. +22 −0 deps/mochiweb/priv/skel/src/skel_app.erl
  78. +84 −0 deps/mochiweb/priv/skel/src/skel_deps.erl
  79. +54 −0 deps/mochiweb/priv/skel/src/skel_sup.erl
  80. +43 −0 deps/mochiweb/priv/skel/src/skel_web.erl
  81. +3 −0 deps/mochiweb/priv/skel/start-dev.sh
  82. +3 −0 deps/mochiweb/priv/skel/start.sh
  83. +11 −0 deps/mochiweb/priv/skel/support/.svn/all-wcprops
  84. +40 −0 deps/mochiweb/priv/skel/support/.svn/entries
  85. +1 −0 deps/mochiweb/priv/skel/support/.svn/format
  86. +46 −0 deps/mochiweb/priv/skel/support/.svn/text-base/include.mk.svn-base
  87. +46 −0 deps/mochiweb/priv/skel/support/include.mk
  88. +11 −0 deps/mochiweb/scripts/.svn/all-wcprops
  89. +40 −0 deps/mochiweb/scripts/.svn/entries
  90. +1 −0 deps/mochiweb/scripts/.svn/format
  91. +27 −0 deps/mochiweb/scripts/.svn/text-base/new_mochiweb.erl.svn-base
  92. +27 −0 deps/mochiweb/scripts/new_mochiweb.erl
  93. +155 −0 deps/mochiweb/src/.svn/all-wcprops
  94. +328 −0 deps/mochiweb/src/.svn/entries
  95. +1 −0 deps/mochiweb/src/.svn/format
  96. +20 −0 deps/mochiweb/src/.svn/text-base/Makefile.svn-base
  97. +426 −0 deps/mochiweb/src/.svn/text-base/mochifmt.erl.svn-base
  98. +30 −0 deps/mochiweb/src/.svn/text-base/mochifmt_records.erl.svn-base
  99. +23 −0 deps/mochiweb/src/.svn/text-base/mochifmt_std.erl.svn-base
  100. +75 −0 deps/mochiweb/src/.svn/text-base/mochihex.erl.svn-base
  101. +533 −0 deps/mochiweb/src/.svn/text-base/mochijson.erl.svn-base
  102. +618 −0 deps/mochiweb/src/.svn/text-base/mochijson2.erl.svn-base
  103. +289 −0 deps/mochiweb/src/.svn/text-base/mochinum.erl.svn-base
  104. +32 −0 deps/mochiweb/src/.svn/text-base/mochiweb.app.svn-base
  105. +110 −0 deps/mochiweb/src/.svn/text-base/mochiweb.erl.svn-base
  106. +20 −0 deps/mochiweb/src/.svn/text-base/mochiweb_app.erl.svn-base
  107. +295 −0 deps/mochiweb/src/.svn/text-base/mochiweb_charref.erl.svn-base
  108. +257 −0 deps/mochiweb/src/.svn/text-base/mochiweb_cookies.erl.svn-base
  109. +31 −0 deps/mochiweb/src/.svn/text-base/mochiweb_echo.erl.svn-base
  110. +186 −0 deps/mochiweb/src/.svn/text-base/mochiweb_headers.erl.svn-base
  111. +893 −0 deps/mochiweb/src/.svn/text-base/mochiweb_html.erl.svn-base
  112. +142 −0 deps/mochiweb/src/.svn/text-base/mochiweb_http.erl.svn-base
  113. +429 −0 deps/mochiweb/src/.svn/text-base/mochiweb_multipart.erl.svn-base
  114. +790 −0 deps/mochiweb/src/.svn/text-base/mochiweb_request.erl.svn-base
  115. +56 −0 deps/mochiweb/src/.svn/text-base/mochiweb_response.erl.svn-base
  116. +73 −0 deps/mochiweb/src/.svn/text-base/mochiweb_skel.erl.svn-base
  117. +248 −0 deps/mochiweb/src/.svn/text-base/mochiweb_socket_server.erl.svn-base
  118. +34 −0 deps/mochiweb/src/.svn/text-base/mochiweb_sup.erl.svn-base
  119. +579 −0 deps/mochiweb/src/.svn/text-base/mochiweb_util.erl.svn-base
  120. +124 −0 deps/mochiweb/src/.svn/text-base/reloader.erl.svn-base
  121. +20 −0 deps/mochiweb/src/Makefile
  122. +426 −0 deps/mochiweb/src/mochifmt.erl
  123. +30 −0 deps/mochiweb/src/mochifmt_records.erl
  124. +23 −0 deps/mochiweb/src/mochifmt_std.erl
  125. +75 −0 deps/mochiweb/src/mochihex.erl
  126. +533 −0 deps/mochiweb/src/mochijson.erl
  127. +618 −0 deps/mochiweb/src/mochijson2.erl
  128. +289 −0 deps/mochiweb/src/mochinum.erl
  129. +32 −0 deps/mochiweb/src/mochiweb.app
  130. +110 −0 deps/mochiweb/src/mochiweb.erl
  131. +20 −0 deps/mochiweb/src/mochiweb_app.erl
  132. +295 −0 deps/mochiweb/src/mochiweb_charref.erl
  133. +257 −0 deps/mochiweb/src/mochiweb_cookies.erl
  134. +31 −0 deps/mochiweb/src/mochiweb_echo.erl
  135. +186 −0 deps/mochiweb/src/mochiweb_headers.erl
  136. +893 −0 deps/mochiweb/src/mochiweb_html.erl
  137. +142 −0 deps/mochiweb/src/mochiweb_http.erl
  138. +429 −0 deps/mochiweb/src/mochiweb_multipart.erl
  139. +790 −0 deps/mochiweb/src/mochiweb_request.erl
  140. +56 −0 deps/mochiweb/src/mochiweb_response.erl
  141. +73 −0 deps/mochiweb/src/mochiweb_skel.erl
  142. +248 −0 deps/mochiweb/src/mochiweb_socket_server.erl
  143. +34 −0 deps/mochiweb/src/mochiweb_sup.erl
  144. +579 −0 deps/mochiweb/src/mochiweb_util.erl
  145. +124 −0 deps/mochiweb/src/reloader.erl
  146. +11 −0 deps/mochiweb/support/.svn/all-wcprops
  147. +40 −0 deps/mochiweb/support/.svn/entries
  148. +1 −0 deps/mochiweb/support/.svn/format
  149. +39 −0 deps/mochiweb/support/.svn/text-base/include.mk.svn-base
  150. +39 −0 deps/mochiweb/support/include.mk
  151. +66 −0 src/rest/controllers/control.erl
  152. +11 −0 src/rest/controllers/home.erl
  153. +20 −0 src/rest/controllers/permissions.erl
  154. +7 −0 src/rest/controllers/template.erl
  155. +47 −0 src/rest/controllers/users.erl
  156. +35 −0 src/rest/controllers/vhosts.erl
  157. +0 −8 src/rest/queue.erl
  158. +18 −14 src/rest/rest_server.erl
  159. +0 −44 src/rest/users.erl
  160. +19 −1 src/utils/utils.erl
  161. +3 −0 start.sh
  162. +19 −0 web/assets/js/jquery-1.3.2.min.js
  163. +54 −0 web/assets/js/site.js
  164. +24 −0 web/index.html
View
@@ -0,0 +1,6 @@
+% -*- mode: erlang -*-
+{["src/*", "src/*/*", "src/*/*/*"],
+ [{i, "include"},
+ {outdir, "ebin"},
+ debug_info]
+}.
View
@@ -1,28 +1,24 @@
-LIBDIR = `erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
-VERSION = 0.0.1
-CC = erlc
-EBIN = ebin
-CFLAGS = -I include -pa $(EBIN)
-COMPILE = $(CC) $(CFLAGS) -o $(EBIN)
-
-all: ebin utils rest make_boot
-
+LIBDIR = `erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
+VERSION = 0.0.1
+CC = erlc
+ERL = erl
+EBIN = ebin
+CFLAGS = -I include -pa $(EBIN)
+COMPILE = $(CC) $(CFLAGS) -o $(EBIN)
+EBIN_DIRS = $(wildcard deps/*/ebin)
+
+all: mochi ebin compile
start: all start_all
-utils:
- $(CC) $(CFLAGS) -o $(EBIN) src/utils/*.erl
-
-rest: rest_controllers
- $(COMPILE) src/rest/rest_server.erl
- $(COMPILE) src/rest/rest_server_sup.erl
- $(COMPILE) src/rest/rest_app.erl
+mochi:
+ @(cd deps/mochiweb;$(MAKE))
-rest_controllers:
- $(COMPILE) src/rest/users.erl
-
-clean_rest: clean utils rest make_boot
- erl -sname alice -boot ebin/rest_app
+compile:
+ @$(ERL) -pa $(EBIN_DIRS) -noinput +B -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
+edoc:
+ @erl -noshell -run edoc_run application '$(APP)' '"."' '[]'
+
make_boot:
(cd ebin; erl -pa ebin -noshell -run make_boot write_scripts rest_app)
@@ -0,0 +1,23 @@
+K 25
+svn:wc:ra_dav:version-url
+V 23
+/svn/!svn/ver/102/trunk
+END
+LICENSE
+K 25
+svn:wc:ra_dav:version-url
+V 29
+/svn/!svn/ver/2/trunk/LICENSE
+END
+README
+K 25
+svn:wc:ra_dav:version-url
+V 28
+/svn/!svn/ver/2/trunk/README
+END
+Makefile
+K 25
+svn:wc:ra_dav:version-url
+V 31
+/svn/!svn/ver/92/trunk/Makefile
+END
View
@@ -0,0 +1,88 @@
+8
+
+dir
+102
+http://mochiweb.googlecode.com/svn/trunk
+http://mochiweb.googlecode.com/svn
+
+
+
+2009-06-25T19:57:08.656793Z
+102
+andrew.r.gross
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+583d1f64-3c3e-0410-8459-0f15fcd77d59
+
+priv
+dir
+
+LICENSE
+file
+
+
+
+
+2009-07-01T18:47:05.000000Z
+5e0144b1f4eb0e6001053e5e37e97db2
+2007-11-06T06:40:02.469198Z
+2
+matthew.dempsky
+
+include
+dir
+
+doc
+dir
+
+src
+dir
+
+scripts
+dir
+
+deps
+dir
+
+support
+dir
+
+ebin
+dir
+
+README
+file
+
+
+
+
+2009-07-01T18:47:05.000000Z
+9b8b48298c58b6c18cc6d9fbefcbe7cc
+2007-11-06T06:40:02.469198Z
+2
+matthew.dempsky
+
+Makefile
+file
+
+
+
+
+2009-07-01T18:47:05.000000Z
+3d41d7808664fabb1e53dfb2158c9d8d
+2009-02-16T07:12:02.315957Z
+92
+bob.ippolito
+
@@ -0,0 +1 @@
+8
@@ -0,0 +1,9 @@
+This is the MIT license.
+
+Copyright (c) 2007 Mochi Media, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,11 @@
+all:
+ (cd src;$(MAKE) all)
+
+edoc:
+ (cd src;$(MAKE) edoc)
+
+test:
+ (cd src;$(MAKE) test)
+
+clean:
+ (cd src;$(MAKE) clean)
@@ -0,0 +1 @@
+MochiWeb is an Erlang library for building lightweight HTTP servers.
View
@@ -0,0 +1,9 @@
+This is the MIT license.
+
+Copyright (c) 2007 Mochi Media, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,11 @@
+all:
+ (cd src;$(MAKE) all)
+
+edoc:
+ (cd src;$(MAKE) edoc)
+
+test:
+ (cd src;$(MAKE) test)
+
+clean:
+ (cd src;$(MAKE) clean)
View
@@ -0,0 +1 @@
+MochiWeb is an Erlang library for building lightweight HTTP servers.
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 26
+/svn/!svn/ver/2/trunk/deps
+END
@@ -0,0 +1,28 @@
+8
+
+dir
+102
+http://mochiweb.googlecode.com/svn/trunk/deps
+http://mochiweb.googlecode.com/svn
+
+
+
+2007-11-06T06:40:02.469198Z
+2
+matthew.dempsky
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+583d1f64-3c3e-0410-8459-0f15fcd77d59
+
@@ -0,0 +1 @@
+8
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 26
+/svn/!svn/ver/92/trunk/doc
+END
@@ -0,0 +1,9 @@
+K 10
+svn:ignore
+V 43
+stylesheet.css
+erlang.png
+edoc-info
+*.html
+
+END
@@ -0,0 +1,28 @@
+8
+
+dir
+102
+http://mochiweb.googlecode.com/svn/trunk/doc
+http://mochiweb.googlecode.com/svn
+
+
+
+2009-02-16T07:12:02.315957Z
+92
+bob.ippolito
+has-props
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+583d1f64-3c3e-0410-8459-0f15fcd77d59
+
@@ -0,0 +1 @@
+8
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 26
+/svn/!svn/ver/5/trunk/ebin
+END
@@ -0,0 +1,7 @@
+K 10
+svn:ignore
+V 13
+*.app
+*.beam
+
+END
@@ -0,0 +1,28 @@
+8
+
+dir
+102
+http://mochiweb.googlecode.com/svn/trunk/ebin
+http://mochiweb.googlecode.com/svn
+
+
+
+2007-11-18T06:05:42.674725Z
+5
+bob.ippolito
+has-props
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+583d1f64-3c3e-0410-8459-0f15fcd77d59
+
@@ -0,0 +1 @@
+8
@@ -0,0 +1,32 @@
+{application, mochiweb,
+ [{description, "MochiMedia Web Server"},
+ {vsn, "0.01"},
+ {modules, [
+ mochihex,
+ mochijson,
+ mochijson2,
+ mochinum,
+ mochiweb,
+ mochiweb_app,
+ mochiweb_charref,
+ mochiweb_cookies,
+ mochiweb_echo,
+ mochiweb_headers,
+ mochiweb_html,
+ mochiweb_http,
+ mochiweb_multipart,
+ mochiweb_request,
+ mochiweb_response,
+ mochiweb_skel,
+ mochiweb_socket_server,
+ mochiweb_sup,
+ mochiweb_util,
+ reloader,
+ mochifmt,
+ mochifmt_std,
+ mochifmt_records
+ ]},
+ {registered, []},
+ {mod, {mochiweb_app, []}},
+ {env, []},
+ {applications, [kernel, stdlib]}]}.
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 29
+/svn/!svn/ver/2/trunk/include
+END
Oops, something went wrong.

0 comments on commit 51e3943

Please sign in to comment.