Skip to content

Instantly share code, notes, and snippets.

@kevinfiol
Last active November 21, 2017 18:39
Show Gist options
  • Save kevinfiol/b817237ecc8ea53fabd12641d4e86044 to your computer and use it in GitHub Desktop.
Save kevinfiol/b817237ecc8ea53fabd12641d4e86044 to your computer and use it in GitHub Desktop.
paths
<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>
/src
index.js
/web
.htaccess
index.php
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