1
0
mirror of https://github.com/urlysses/1991.git synced 2024-12-28 02:38:04 +11:00
Commit Graph

6 Commits

Author SHA1 Message Date
urlysses
3a8b715b7b Ignore .DS_Store 2017-02-15 12:21:34 -05:00
urlysses
b2926d10c2 Handle 404s more appropriately if a requested route fails 2017-02-14 21:50:02 -05:00
urlysses
a4e3aa169e Add very basic GET support (route either resolves or doesn't)
TODO:
+ file-serving if no user-defined routes match. Search "public/" dir
unless otherwise specified by user.
+ query arguments
+ PUT, POST, DELETE
+ templating
+ fuzzy-/pattern-match-enabled user routes (e.g., /something/*/wildcard)?
2017-02-14 21:36:22 -05:00
urlysses
31311ee91c Save user routing in a wordlist.
The aim is to try to avoid polluting the global wordlist with routing
functions.

The alternative would be to have users simply define words that match
their routes, e.g.:
```
: 1991/hi
    ( some definition of hi's handler )
    ;
```

I'm still not entirely convinced that the above method isn't a better
solution.
2017-02-13 22:34:57 -05:00
urlysses
f40f2d5630 Gotta start somewhere:
First, define a user-facing word that takes a port and subsequently
starts the server (using gforth's unix/socket.fs).
Second, start defining a user-facing word for specifing routes and their
handlers.
2017-02-11 22:16:52 -05:00
urlysses
1f528fa8f6 1991 2017-02-01 22:26:33 -05:00