Elco Brouwer von Gonzenbach
8015be8069
Correct spacing
2018-06-12 09:15:54 +07:00
Elco Brouwer von Gonzenbach
e39ad59589
Add regexp option to routes
2018-06-12 09:11:54 +07:00
Rich Harris
da47fdec96
fix sorting
2018-05-05 09:38:24 -04:00
Rich Harris
b525eb6480
get tests passing
2018-05-04 17:19:39 -04:00
Rich Harris
9e2d0a7fbc
Merge branch 'master' into collision
2018-05-04 17:05:18 -04:00
Akihiko Odaki
ba7525c676
Ignore files and directories with leading dots except .well-known
2018-05-04 22:18:23 +09:00
Rich Harris
992d89027d
Merge branch 'master' into collision
2018-05-03 21:44:28 -04:00
Rich Harris
93128a0156
Merge pull request #243 from akihikodaki/dot
...
Accept directory entries which starts with dot as routes
2018-05-03 21:39:46 -04:00
Akihiko Odaki
6f9ce9ce85
Accept directory entries which starts with dot as routes
...
It allows to implement .well-known URIs.
2018-04-19 22:04:03 +09:00
Akihiko Odaki
917dd60cc3
Allow to have middleware for the path same with a HTML page
...
HTTP allows to change the type of the content to serve by Accept field in
the request. The middleware for the path same with a HTML page will
be inserted before the HTML renderer, and can take advantage of this
feature, using expressjs's "accepts" method, for example.
2018-04-15 23:11:08 +09:00
Akihiko Odaki
b13cc6f39a
Do not encode characters allowed in path when generating routes
...
In RFC 3986, some characters not allowed in query, which encodeURIComponent
is designed for, is allowed in path.
A notable example is "@", which is commonly included in paths of social
profile pages. Such characters should not be encoded.
The new encoding function is conforming to the RFC.
2018-04-14 01:08:27 +09:00
Rich-Harris
25809ec409
enforce stable sort
2018-03-25 15:12:35 -04:00
Rich Harris
be63ea7c96
add SAPPER_BASE and SAPPER_APP environment variables
2018-03-11 13:29:39 -04:00
Rich Harris
4171786953
ensure directories are not mistaken for routes
2018-03-10 20:38:48 -05:00
Rich Harris
9bac32eea4
allow server routes to be .ts files (or anything else) - fixes #57
2018-03-10 20:08:23 -05:00
Rich Harris
8bb0999878
fix route sorting
2018-03-07 14:26:30 -05:00
Rich Harris
854147fa6c
URI-encodes routes - fixes #103
2018-03-04 18:59:35 -05:00
Rich Harris
b73e5eaa8e
sapper build defaults to build dir, sapper export defaults to export dir ( #133 )
2018-03-03 12:09:06 -05:00
Rich Harris
58c1eb9fa8
allow dynamic parameters inside route parts - fixes #139
2018-02-28 09:39:21 -05:00
Rich Harris
f9828f9fd2
work in progress
2018-02-16 12:01:55 -05:00
Rich Harris
0f390920a8
fix some typescript stuff
2018-02-14 12:25:24 -05:00
Rich Harris
8bad37205d
convert to typescript
2018-01-21 16:28:02 -05:00