Last active
November 21, 2017 18:39
-
-
Save kevinfiol/b817237ecc8ea53fabd12641d4e86044 to your computer and use it in GitHub Desktop.
paths
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Client Reroutes | |
RewriteBase /web/ | |
RewriteRule ^web\/index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /web/index.php [L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/src | |
index.js | |
/web | |
.htaccess | |
index.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import m from 'mithril'; | |
import { Layout } from 'views/Layout'; | |
import { Index } from 'views/Index'; | |
m.route.prefix('/web'); | |
m.route(document.getElementById('app'), '/', { | |
'/': { | |
render () { | |
return ( | |
<Layout> | |
<Index /> | |
</Layout> | |
); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment