Skip to content

Commit

Permalink
Merge pull request #33 from f3l/030_ship_css
Browse files Browse the repository at this point in the history
Added handling for css files.
  • Loading branch information
pheerai authored Jan 16, 2017
2 parents c22983d + 2d4c519 commit 2697bd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/app.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//module f3lcites;
import vibe.d;
import vibe.data.json;
import vibe.http.fileserver;
import std.conv;
import f3lcites.sqlite;
import f3lcites.util;
Expand Down Expand Up @@ -41,6 +42,8 @@ shared static this() {
router.get("/api/get", &(restInterface.getRandom));
router.get("/api/get/:id", &(restInterface.getById));
router.post("/api/add", &(restInterface.addCite));

router.get("/assets/cites.css", serveStaticFile("static/cites.css"));

listenHTTP(settings, router);

Expand Down

0 comments on commit 2697bd5

Please sign in to comment.