This repository was archived by the owner on Nov 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # server-api
1+ # server-yes
22## An api for all of our apps to use!
33I have nothing more to say :>
Original file line number Diff line number Diff line change 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+
211const data = { } ;
312data . users = { } // uuid ->
413
Original file line number Diff line number Diff line change 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+
211const data = require ( './database' ) ;
312const stringUtils = require ( '../lib/utils/stringUtils' ) ;
413const { log } = require ( '../lib/logs' ) ;
Original file line number Diff line number Diff line change 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
1311require ( 'dotenv' ) . config ( ) ;
1412
@@ -25,4 +23,5 @@ admin.initializeApp({
2523} ) ;
2624
2725// rest api: olix3001, hiderr
26+ // database: xJulek
2827// websocket: Frankoslaw, jj15_warrior
Original file line number Diff line number Diff line change 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
311const enableLogs = true ;
412
Original file line number Diff line number Diff line change 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+
211const jwt = require ( 'jsonwebtoken' ) ;
312const { admin } = require ( '../index' ) ;
413const { log } = require ( './logs' ) ;
Original file line number Diff line number Diff line change 1+ /*
2+ _____ __ __ ___
3+ / ___/___ _____________ / /_ / |/ /__ ______________ _____ ____
4+ \__ \/ _ \/ ___/ ___/ _ \/ __/ / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \
5+ ___/ / __/ /__/ / / __/ /_ / / / / __(__ |__ ) /_/ / /_/ / __/
6+ /____/\___/\___/_/ \___/\__/ /_/ /_/\___/____/____/\__,_/\__, /\___/
7+ /____/
8+ Secret Message project © 2021 is licensed under CC BY-NC-ND 4.0
9+ */
10+
111function toHex ( str ) {
212 var result = '' ;
313 for ( var i = 0 ; i < str . length ; i ++ ) {
Original file line number Diff line number Diff line change 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+
211const express = require ( 'express' ) ;
312const router = express . Router ( ) ;
413
Original file line number Diff line number Diff line change 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+
211const express = require ( 'express' ) ;
312const router = express . Router ( ) ;
413const userLib = require ( '../../lib/user' ) ;
Original file line number Diff line number Diff line change 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+
211const express = require ( 'express' ) ;
312const app = express ( ) ;
413const chalk = require ( 'chalk' ) ; // <- kolorki :D
You can’t perform that action at this time.
0 commit comments