-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ru
53 lines (43 loc) · 883 Bytes
/
config.ru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
require './app/api/login'
require './app/api/uploads'
require './app/api/rating'
require './app/api/tag'
require './app/api/leaderboard'
require './app/api/users'
require './app/api/comment'
require './app/api/feedback'
require './app/api/sitemap'
require 'rack/cors'
use Rack::Cors do
allow do
origins '*'
resource '*', headers: :any, methods: :post
end
end
map '/auth' do
run SocialChallenges::LOGINAPI
end
map '/upload' do
run SocialChallenges::UploadAPI
end
map '/rating' do
run SocialChallenges::RatingAPI
end
map '/tag' do
run SocialChallenges::TagAPI
end
map '/leaderboard' do
run SocialChallenges::LeaderboardAPI
end
map '/users' do
run SocialChallenges::UsersAPI
end
map '/comment' do
run SocialChallenges::CommentAPI
end
map '/feedback' do
run SocialChallenges::FeedbackAPI
end
map '/sitemap' do
run SocialChallenges::SitemapAPI
end