Commit Graph

31 Commits

Author SHA1 Message Date
a85dba1c41
make signup script a template 2023-01-21 22:19:17 +05:30
Odyssey
c20a2eaae8 split into separate files
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-19 16:12:46 +01:00
Odyssey
8acdb78f00 something
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-19 16:08:09 +01:00
Odyssey
c54ce2b46b fix formatting
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-19 16:04:28 +01:00
Arya Kiran
b714c1b463
fix regex 2023-01-19 11:30:25 +05:30
Arya Kiran
47ab0080e7
gofmt 2023-01-19 10:55:11 +05:30
Arya Kiran
367c91d843
use regex for online-check 2023-01-18 23:28:56 +05:30
Arya Kiran
7a3ed3d955
retrieve username from args instead of envfile 2023-01-18 22:46:09 +05:30
Arya Kiran
b8c03015ef
add internal server error for some errors 2023-01-18 22:43:23 +05:30
Arya Kiran
2b3b221baf
workaround to allow lowercase in json while still exporting struct field 2023-01-18 22:36:57 +05:30
Arya Kiran
e934aa5a92
fixed user attributes for /users 2023-01-18 22:20:51 +05:30
Arya Kiran
3c1d2770cb
no need to initialize output as 0 2023-01-18 21:26:37 +05:30
Arya Kiran
be59d303d0
breaking change: move /online route to /users 2023-01-18 21:16:44 +05:30
Arya Kiran
67b4d8842e
add total usercount, per-user online values 2023-01-18 21:14:36 +05:30
Arya Kiran
dd5670e0cc
switch to env for meta-info; add example meta-info.env 2023-01-18 21:05:07 +05:30
Arya Kiran
ad85946120
add ssh key value for signup 2023-01-17 20:36:47 +05:30
Arya Kiran
d1c36f7af4
don't depend on wc for online user count; wip meta info in json 2023-01-17 19:35:28 +05:30
Odyssey
a10b9a75c2 Fix newline escape character on /online
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 19:43:20 +01:00
Odyssey
6d0d1a3cb0 bruhhh
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 18:57:57 +01:00
Odyssey
e3b87c8a4a Fix /online output
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 18:32:17 +01:00
Odyssey
8a9b2623f9 Try this Arya
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 18:26:14 +01:00
Odyssey
2880eda259 try
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 18:21:44 +01:00
Odyssey
032e7a6f78 Merge branch 'master' of https://github.com/ProjectSegfault/publapi
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 18:17:31 +01:00
Odyssey
588804cf62 ok commited
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 18:16:35 +01:00
Arya Kiran
40829dfbe9
add full path for users and wc binary 2023-01-07 22:26:25 +05:30
Odyssey
41ecec808c Switch logger
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 17:54:04 +01:00
Odyssey
93353c7551 add logging to online
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 17:48:15 +01:00
Odyssey
fffd28165b Oops
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 17:45:42 +01:00
Odyssey
de809e2837 some changes
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 17:44:25 +01:00
Odyssey
b1034bca16 Fix syntax
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 17:02:06 +01:00
Odyssey
2a827841c9 Arya fix it
Signed-off-by: Odyssey <odyssey346@disroot.org>
2023-01-07 16:33:51 +01:00