dailyshare 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module DailyShare
|
|
4
4
|
|
5
5
|
class App < Sinatra::Base
|
6
6
|
|
7
|
-
get '/admin
|
7
|
+
get '/admin' do
|
8
8
|
protected!
|
9
9
|
redirect '/'
|
10
10
|
end
|
@@ -31,7 +31,7 @@ module DailyShare
|
|
31
31
|
##
|
32
32
|
# Receive emailed photos via Postmark.
|
33
33
|
#
|
34
|
-
post '/receiver
|
34
|
+
post '/receiver' do
|
35
35
|
# parse post data
|
36
36
|
data = JSON.parse(request.body.read)
|
37
37
|
|
@@ -15,7 +15,7 @@ module DailyShare
|
|
15
15
|
slim :logout
|
16
16
|
end
|
17
17
|
|
18
|
-
get '/:y/:m/:d
|
18
|
+
get '/:y/:m/:d' do
|
19
19
|
begin
|
20
20
|
date = date_from_params(params)
|
21
21
|
context = context_from_date(date)
|
@@ -31,7 +31,7 @@ module DailyShare
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
get '/:name
|
34
|
+
get '/:name' do
|
35
35
|
if (member = Member.byName(params[:name])).nil?
|
36
36
|
redirect request.referrer
|
37
37
|
end
|
@@ -39,7 +39,7 @@ module DailyShare
|
|
39
39
|
slim :member, :locals => { :photos => member.photos }
|
40
40
|
end
|
41
41
|
|
42
|
-
get '/:name/missing
|
42
|
+
get '/:name/missing' do
|
43
43
|
if (member = Member.byName(params[:name])).nil?
|
44
44
|
redirect request.referrer
|
45
45
|
end
|
data/lib/dailyshare/version.rb
CHANGED