Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import express from 'express';
|
|
|
|
|
|
|
|
import { assertInit } from '../middlewares';
|
|
|
|
|
|
|
|
import { setMapNetwork } from '../lib/request_handlers/command';
|
|
|
|
import { configStriker } from '../lib/request_handlers/host';
|
|
|
|
import { getNetworkInterface } from '../lib/request_handlers/network-interface';
|
|
|
|
|
|
|
|
const router = express.Router();
|
|
|
|
|
|
|
|
router.use(assertInit());
|
|
|
|
|
|
|
|
router
|
|
|
|
.get('/network-interface', getNetworkInterface)
|
|
|
|
.post('/', configStriker)
|
|
|
|
.put('/set-map-network', setMapNetwork);
|
|
|
|
|
|
|
|
export default router;
|