mirror of
https://github.com/lucaspalomodevelop/monitoring-server.git
synced 2026-03-12 22:57:21 +00:00
14 lines
396 B
JavaScript
14 lines
396 B
JavaScript
"use strict";
|
|
const api = require("./handlers/api");
|
|
const configured = require("./handlers/configured");
|
|
const staticVuePath = __dirname + "\\views\\dist";
|
|
const express = require("express");
|
|
|
|
module.exports = function(app, opts) {
|
|
// Setup routes, middleware, and handlers
|
|
|
|
app.get("/configured", configured(opts));
|
|
app.get("/api", api);
|
|
app.get("*", express.static(staticVuePath));
|
|
};
|