-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
ext_typoscript_setup.txt
74 lines (66 loc) · 2.27 KB
/
ext_typoscript_setup.txt
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugin.tx_rest.settings {
paths {
greeting {
path = greeting
read = allow
write = deny
cacheLifetime = -1
handlerClass = \Cundd\Rest\Handler\GreetingHandler
dataProviderClass = \Cundd\Rest\DataProvider\DataProviderInterface
}
all {
path = all
read = deny
write = deny
cacheLifetime = -1
handlerClass = \Cundd\Rest\Handler\CrudHandler
dataProviderClass = \Cundd\Rest\DataProvider\DataProviderInterface
}
auth {
path = auth
read = allow
write = allow
cacheLifetime = -1
handlerClass = \Cundd\Rest\Handler\AuthHandler
}
}
# Configure a set of default response headers that will be set if the response does **not** already contain them
# defaultResponseHeaders {
# Access-Control-Allow-Credentials = true
# Access-Control-Allow-Methods = GET, POST, OPTIONS, DELETE
# }
# Overwrite the response's headers with the following ones
# responseHeaders {
# Access-Control-Allow-Credentials = true
# Access-Control-Allow-Methods = GET, POST, OPTIONS, DELETE
# }
# Define a list of allowed origins:
# If the request's `Origin`-header matches one of the listed origins, it will be whitelisted in the
# `Access-Control-Allow-Origin`-header of the response
# cors.allowedOrigins {
# 0 = http://localhost:3000
# }
# This is not defined here to allow easy customization in third party extensions TypoScript setup
# cacheLifetime = -1
# expiresHeaderLifetime =
# doNotAddClass = 1
# Define words that should not be converted to singular
singularToPlural {
news = news
equipment = equipment
information = information
rice = rice
money = money
species = species
series = series
fish = fish
sheep = sheep
press = press
sms = sms
}
authenticationProvider {
10 = Cundd\Rest\Authentication\BasicAuthenticationProvider
20 = Cundd\Rest\Authentication\CredentialsAuthenticationProvider
# 30 = Cundd\Rest\Authentication\RequestAuthenticationProvider
}
}