-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
21 lines (19 loc) · 1.06 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Options -Indexes
Options -MultiViews
Header set Access-Control-Allow-Origin "*"
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /november_project_api/
RewriteRule ^workout_locations(/)?(\d*)$ endpoint/NP_WorkoutLocationHandler.php?id=$2 [L,QSA]
RewriteRule ^workout_routines(/)?(\d*)$ endpoint/NP_WorkoutRoutineHandler.php?id=$2 [L,QSA]
RewriteRule ^workouts(/)([A-z]+)$ endpoint/NP_WorkoutHandler.php?request_type=$2 [L,QSA]
RewriteRule ^workouts(/)?(\d*)$ endpoint/NP_WorkoutHandler.php?id=$2 [L,QSA]
RewriteRule ^access_token(/)?(.*)$ endpoint/NP_AuthenticationHandler.php?type=$2 [L,QSA]
RewriteRule ^tribes/(\d*)/workout_locations endpoint/NP_WorkoutLocationHandler.php?tribe_id=$1 [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^api-doc$ swagger-json/index.php
RewriteRule ^api-doc/access_token$ swagger-json/access_token.php
RewriteRule ^api-doc/workout_locations$ swagger-json/workout_location.php
RewriteRule ^api-doc/workout_routines$ swagger-json/workout_routine.php
RewriteRule ^api-doc/workouts$ swagger-json/workout.php
</IfModule>