backup 2022-12-25
This commit is contained in:
parent
1761eb4000
commit
3fc86a9dd0
7 changed files with 62 additions and 0 deletions
12
site/index.html
Normal file
12
site/index.html
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Counter Manager</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Hello There
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
0
site/style.css
Normal file
0
site/style.css
Normal file
10
src/endpoints/channelInfo.ts
Normal file
10
src/endpoints/channelInfo.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { ServerRoute } from "@hapi/hapi";
|
||||||
|
|
||||||
|
const route: ServerRoute = {
|
||||||
|
method: `GET`, path: `/channels/{channel}`,
|
||||||
|
options: {},
|
||||||
|
async handler() {
|
||||||
|
return `pong!`;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
export default route;
|
||||||
10
src/endpoints/createChannel.ts
Normal file
10
src/endpoints/createChannel.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { ServerRoute } from "@hapi/hapi";
|
||||||
|
|
||||||
|
const route: ServerRoute = {
|
||||||
|
method: `POST`, path: `/channels`,
|
||||||
|
options: {},
|
||||||
|
async handler() {
|
||||||
|
return `pong!`;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
export default route;
|
||||||
10
src/endpoints/createCounter.ts
Normal file
10
src/endpoints/createCounter.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { ServerRoute } from "@hapi/hapi";
|
||||||
|
|
||||||
|
const route: ServerRoute = {
|
||||||
|
method: `POST`, path: `/channels/{channel}/counters`,
|
||||||
|
options: {},
|
||||||
|
async handler() {
|
||||||
|
return `pong!`;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
export default route;
|
||||||
10
src/endpoints/deleteCounter.ts
Normal file
10
src/endpoints/deleteCounter.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { ServerRoute } from "@hapi/hapi";
|
||||||
|
|
||||||
|
const route: ServerRoute = {
|
||||||
|
method: `DELETE`, path: `/channels/{channel}/counters/{counter}`,
|
||||||
|
options: {},
|
||||||
|
async handler() {
|
||||||
|
return `pong!`;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
export default route;
|
||||||
10
src/endpoints/listChannels.ts
Normal file
10
src/endpoints/listChannels.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { ServerRoute } from "@hapi/hapi";
|
||||||
|
|
||||||
|
const route: ServerRoute = {
|
||||||
|
method: `GET`, path: `/channels`,
|
||||||
|
options: {},
|
||||||
|
async handler() {
|
||||||
|
return `pong!`;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
export default route;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue