Skip to content
This repository was archived by the owner on Nov 9, 2021. It is now read-only.

Commit e1ddc4d

Browse files
authored
Merge pull request #2 from Secret-Message/xJulek
change headers for all files
2 parents 5dcd4bc + 80f4247 commit e1ddc4d

11 files changed

Lines changed: 91 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# server-api
1+
# server-yes
22
## An api for all of our apps to use!
33
I have nothing more to say :>

src/database/database.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
10+
211
const data = {};
312
data.users = {} // uuid ->
413

src/database/users.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
10+
211
const data = require('./database');
312
const stringUtils = require('../lib/utils/stringUtils');
413
const { log } = require('../lib/logs');

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
2-
// ^ naglowek z licencja
31
/*
42
_____ __ __ ___
53
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
64
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
75
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
86
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
97
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
109
*/
11-
// ascii ^
1210

1311
require('dotenv').config();
1412

@@ -25,4 +23,5 @@ admin.initializeApp({
2523
});
2624

2725
// rest api: olix3001, hiderr
26+
// database: xJulek
2827
// websocket: Frankoslaw, jj15_warrior

src/lib/logs.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
210

311
const enableLogs = true;
412

src/lib/user.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
10+
211
const jwt = require('jsonwebtoken');
312
const { admin } = require('../index');
413
const { log } = require('./logs');

src/lib/utils/stringUtils.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
10+
111
function toHex(str) {
212
var result = '';
313
for (var i = 0; i < str.length; i++) {

src/rest/routes/dm.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
10+
211
const express = require('express');
312
const router = express.Router();
413

src/rest/routes/users.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
10+
211
const express = require('express');
312
const router = express.Router();
413
const userLib = require('../../lib/user');

src/rest/server.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
// Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
1+
/*
2+
_____ __ __ ___
3+
/ ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+
\__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+
___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+
/____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+
/____/
8+
Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+
*/
10+
211
const express = require('express');
312
const app = express();
413
const chalk = require('chalk'); // <- kolorki :D

0 commit comments

Comments
 (0)