mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 23:33:12 +09:00
Add all routes the web interface is served on to the express app and serve the index.html file on. Due to the index html not knowing which path it's hosted under, a path to the root of the web interface is replaced using string substitution from the master server.
17 lines
301 B
JavaScript
17 lines
301 B
JavaScript
"use strict";
|
|
// Routes used in the web interface and served by the master server
|
|
module.exports = [
|
|
"/",
|
|
"/instances",
|
|
"/instances/:id/view",
|
|
"/slaves",
|
|
"/slaves/:id/view",
|
|
"/users",
|
|
"/users/:id/view",
|
|
"/roles",
|
|
"/roles/:id/view",
|
|
"/permissions",
|
|
"/permissions/:id/view",
|
|
"/settings",
|
|
];
|