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

Support path based routing in dev-server #916

Merged
merged 3 commits into from
Jul 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/dev-server/http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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