Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
feature(dev-server): add support for path-based routing
Browse files Browse the repository at this point in the history
* feature(dev-server): add fallback route to /index.html to support path based routing

* fix(dev-server): Fix ion-dev css/js when loaded with a path

* remove injector changes
  • Loading branch information
antriver authored and danbucholtz committed Jul 5, 2017
1 parent 0db423a commit 2441591
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dev-server/http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export function createHttpServer(config: ServeConfig): express.Application {
app.get('/cordova_plugins.js', servePlatformResource);
app.get('/plugins/*', servePlatformResource);

// Fallback route - send to index.html to allow deeplinker to handle path.
app.use(serveIndex);

if (config.useProxy) {
setupProxies(app);
}
Expand Down

0 comments on commit 2441591

Please sign in to comment.