diff options
| author | 2019-07-12 20:37:31 -0400 | |
|---|---|---|
| committer | 2019-07-12 20:37:31 -0400 | |
| commit | 9b63350aaf63181a5f1ef6898be2dec421d5b545 (patch) | |
| tree | 9433dfe3b87102e54264f101f1aaa22fb3fc8108 /source/app.d | |
| parent | docs: s/anything/foo/ for clarity (diff) | |
feat: add new routing for reads
/:id/:lang is now used.
If :lang is raw, give raw output.
This deprecates the old endpoints/methods:
- /:id?lang=lang
- /:id?lang
- /raw/:id
Diffstat (limited to 'source/app.d')
| -rw-r--r-- | source/app.d | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/app.d b/source/app.d index 1115524..bf9af1b 100644 --- a/source/app.d +++ b/source/app.d @@ -23,8 +23,10 @@ shared static this() { router.post("/", &post); router.put("/:id", &put); + router.get("/:id/raw", &idRaw); + router.get("/:id/:lang", &idLng); router.get("/:id", &idLng); - router.get("/raw/:id", &idRaw); + router.get("/raw/:id", &idRaw); // DEPRECATED listenHTTP(settings, router); } |
